{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/829","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/829/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/829/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/829/events","html_url":"https://github.com/WP-API/WP-API/issues/829","id":56194080,"number":829,"title":"Finalize endpoints for core and custom taxonomies","user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WP-API/WP-API/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/WP-API/WP-API/labels/Discussion","name":"Discussion","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/WP-API/WP-API/milestones/10","html_url":"https://github.com/WP-API/WP-API/milestones/2.0","labels_url":"https://api.github.com/repos/WP-API/WP-API/milestones/10/labels","id":844496,"number":10,"title":"2.0","description":null,"creator":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"open_issues":88,"closed_issues":141,"state":"open","created_at":"2014-10-29T00:12:18Z","updated_at":"2015-02-27T03:24:33Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-02T04:09:30Z","updated_at":"2015-02-27T06:08:34Z","closed_at":null,"body":"Our category and tag endpoints currently live at `/wp-json/wp/terms/category` and `/wp-json/wp/terms/tag` on `develop`.\r\n\r\nI think we actually want them them to be `/wp-json/wp/categories` and `/wp-json/wp/tags`. The endpoint registration pattern should be similar to https://github.com/WP-API/WP-API/pull/820/files#diff-55d3bf5e833c76ee6e3c2f4be15fa1cdR84\r\n\r\nPrompted by: https://github.com/WP-API/WP-API/issues/813#issuecomment-72403922"},"comment":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/comments/76344585","html_url":"https://github.com/WP-API/WP-API/issues/829#issuecomment-76344585","issue_url":"https://api.github.com/repos/WP-API/WP-API/issues/829","id":76344585,"user":{"login":"rmccue","id":21655,"avatar_url":"https://avatars.githubusercontent.com/u/21655?v=3","gravatar_id":"","url":"https://api.github.com/users/rmccue","html_url":"https://github.com/rmccue","followers_url":"https://api.github.com/users/rmccue/followers","following_url":"https://api.github.com/users/rmccue/following{/other_user}","gists_url":"https://api.github.com/users/rmccue/gists{/gist_id}","starred_url":"https://api.github.com/users/rmccue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmccue/subscriptions","organizations_url":"https://api.github.com/users/rmccue/orgs","repos_url":"https://api.github.com/users/rmccue/repos","events_url":"https://api.github.com/users/rmccue/events{/privacy}","received_events_url":"https://api.github.com/users/rmccue/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T06:08:34Z","updated_at":"2015-02-27T06:08:34Z","body":"The problem if we auto-register either is that we're compressing two namespaces into one, so there can pretty naturally be conflicts there. If I have a post type that has the base set to `comics`, and then I activate another plugin that has a `comic` taxonomy (that will be turned into `/wp/comics`), how do we resolve it?\r\n\r\nI think the natural way to do that is to avoid compressing them, so instead we'd have `/terms/<type>` and `/terms/<type>/<id>`. This makes it semi-inconsistent with posts (which are at `/<type>/<id>`), but I'm OK with doing so, since while \"terms\" is a generic term (heh) for objects with a taxonomy, \"posts\" is an overloaded term, so `/posts/<type>` might be more confusing. Posts would also be opt-in only via `json_base` or whatever.\r\n\r\nWe also need to consider this with the other core objects: how do we handle custom comment types, and custom user types? Auto-registration seems like an OK idea (assuming we're OK with the auto-generated naming), as long as they're namespaced."}}