Interface TaxonomyAPIs
- All Known Implementing Classes:
TaxonomyApiClientModule
public interface TaxonomyAPIs
Defines operations for retrieving WordPress taxonomies through the WordPress REST API.
This interface provides methods for retrieving a single WpTaxonomyInfo resource and listing available
taxonomy resources.
Implementations are expected to communicate with the /wp-json/wp/v2/taxonomies endpoint or compatible
APIs.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a taxonomy by its alphanumeric identifier.list()Retrieves the list of available taxonomies.
-
Method Details
-
get
Retrieves a taxonomy by its alphanumeric identifier.The identifier corresponds to the taxonomy slug, for example
categoryorpost_tag.- Parameters:
name- the taxonomy identifier; must not benull- Returns:
- the matching
WpTaxonomyInfo
-
list
Map<String,WpTaxonomyInfo> list()Retrieves the list of available taxonomies.- Returns:
- the available
WpTaxonomyInforesources
-