[wp-trac] [WordPress Trac] #38439: Should we commit to `wp/v2/taxonomies/post_tag` or switch to `wp/v2/taxonomies/tag` ?
WordPress Trac
noreply at wordpress.org
Tue Nov 1 14:54:56 UTC 2016
#38439: Should we commit to `wp/v2/taxonomies/post_tag` or switch to
`wp/v2/taxonomies/tag` ?
-----------------------------+------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
-----------------------------+------------------
Comment (by jnylen0):
If we make a change other than `post_tag` → `tag` here, we should do the
same change for `/wp/v2/types` also.
I like the consistency of using `rest_base` everywhere, but I agree it
looks a bit strange to have `wp/v2/taxonomies/tags`.
If we don't switch to `rest_base`, then we should add `rest_base` as a
response property on both the taxonomy and post type items. Currently
there's not a way to programmatically link the taxonomy parameters to the
term endpoints or the post type items to the corresponding post endpoints.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38439#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list