[wp-trac] [WordPress Trac] #38607: Add `rest_base` to response objects of `wp/v2/taxonomies` and `wp/v2/types` on the REST Api
WordPress Trac
noreply at wordpress.org
Wed Nov 2 05:44:02 UTC 2016
#38607: Add `rest_base` to response objects of `wp/v2/taxonomies` and
`wp/v2/types` on the REST Api
--------------------------------------+------------------------------
Reporter: youknowriad | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+------------------------------
Comment (by jnylen0):
Here's one example of a link that is currently missing:
- The `note` post type supports categories: https://nylen.io/blog/wp-
json/wp/v2/taxonomies/category
- How do I get items of the `note` post type? (Its `rest_base` is `notes`
but there's no way to tell that from here)
Once taxonomies are added to post types in #38439 there will be a similar
situation, but in reverse: going from a post type in `/wp/v2/types` to its
taxonomies.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38607#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list