Created
June 2, 2014 15:20
-
-
Save rachelbaker/d3fa9fa33a27d3c85528 to your computer and use it in GitHub Desktop.
Example response for a taxonomy for a request to GET /taxonomies/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"Tags", | |
"slug":"post_tag", | |
"labels":{ | |
"name":"Tags", | |
"singular_name":"Tag", | |
"search_items":"Search Tags", | |
"popular_items":"Popular Tags", | |
"all_items":"All Tags", | |
"parent_item":null, | |
"parent_item_colon":null, | |
"edit_item":"Edit Tag", | |
"view_item":"View Tag", | |
"update_item":"Update Tag", | |
"add_new_item":"Add New Tag", | |
"new_item_name":"New Tag Name", | |
"separate_items_with_commas":"Separate tags with commas", | |
"add_or_remove_items":"Add or remove tags", | |
"choose_from_most_used":"Choose from the most used tags", | |
"not_found":"No tags found.", | |
"menu_name":"Tags", | |
"name_admin_bar":"post_tag" | |
}, | |
"types":{ | |
"post":{ | |
"name":"Posts", | |
"slug":"post", | |
"description":"", | |
"labels":{ | |
"name":"Posts", | |
"singular_name":"Post", | |
"add_new":"Add New", | |
"add_new_item":"Add New Post", | |
"edit_item":"Edit Post", | |
"new_item":"New Post", | |
"view_item":"View Post", | |
"search_items":"Search Posts", | |
"not_found":"No posts found.", | |
"not_found_in_trash":"No posts found in Trash.", | |
"parent_item_colon":null, | |
"all_items":"All Posts", | |
"menu_name":"Posts", | |
"name_admin_bar":"Post" | |
}, | |
"queryable":true, | |
"searchable":true, | |
"hierarchical":false, | |
"meta":{ | |
"links":{ | |
"self":"http:\/\/local.wpapi.dev\/wp-json\/posts\/types\/post", | |
"archives":"http:\/\/local.wpapi.dev\/wp-json\/posts" | |
} | |
} | |
}, | |
"show_cloud": true, | |
"hierarchical": false, | |
"meta": { | |
"links": { | |
"archives": "http://local.wpapi.dev/wp-json/taxonomies/post_tag/terms", | |
"collection": "http://local.wpapi.dev/wp-json/taxonomies", | |
"self": "http://local.wpapi.dev/wp-json/taxonomies/post_tag" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment