{"id":753,"date":"2019-05-07T15:04:09","date_gmt":"2019-05-07T15:04:09","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/?post_type=docs&#038;p=753"},"modified":"2019-05-07T15:21:02","modified_gmt":"2019-05-07T15:21:02","slug":"taxonomies","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/api\/taxonomies\/","title":{"rendered":"Taxonomies"},"content":{"rendered":"<p><span class=\"bookmark-index\"><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#endpoint\">Endpoints<\/a><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"#intro\">Introduction<\/a><\/h3>\n<p>Access taxonomies via the REST API using GeoDirectory Rest API End Point.<\/p>\n<h3><a href=\"#endpoint\">EndPoints<\/a><\/h3>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n        <label class=\"label-get\">GET<\/label><\/p>\n<h6>\/wp-json\/geodir\/v2\/taxonomies\/<\/h6>\n<\/p><\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n{\r\n    \"gd_place_tags\": {\r\n        \"name\": \"Place Tags\",\r\n        \"slug\": \"gd_place_tags\",\r\n        \"description\": \"\",\r\n        \"types\": [\r\n            \"gd_place\"\r\n        ],\r\n        \"hierarchical\": false,\r\n        \"rest_base\": \"places\/tags\",\r\n        \"_links\": {\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/taxonomies\"\r\n                }\r\n            ],\r\n            \"wp:items\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/wp\/v2\/places\/tags\"\r\n                }\r\n            ],\r\n            \"curies\": [\r\n                {\r\n                    \"name\": \"wp\",\r\n                    \"href\": \"https:\/\/api.w.org\/{rel}\",\r\n                    \"templated\": true\r\n                }\r\n            ]\r\n        }\r\n    },\r\n    \"gd_placecategory\": {\r\n        \"name\": \"Place Categories\",\r\n        \"slug\": \"gd_placecategory\",\r\n        \"description\": \"\",\r\n        \"types\": [\r\n            \"gd_place\"\r\n        ],\r\n        \"hierarchical\": true,\r\n        \"rest_base\": \"places\/categories\",\r\n        \"_links\": {\r\n            \"collection\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/taxonomies\"\r\n                }\r\n            ],\r\n            \"wp:items\": [\r\n                {\r\n                    \"href\": \"http:\/\/local.newwp.test\/wp-json\/wp\/v2\/places\/categories\"\r\n                }\r\n            ],\r\n            \"curies\": [\r\n                {\r\n                    \"name\": \"wp\",\r\n                    \"href\": \"https:\/\/api.w.org\/{rel}\",\r\n                    \"templated\": true\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}\r\n\r\n<\/pre>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n        <label class=\"label-get\">GET<\/label><\/p>\n<h6>\/wp-json\/geodir\/v2\/taxonomies\/<taxonomy>\/<\/h6>\n<\/p><\/div>\n<\/div>\n<p><strong>Example<\/strong><\/p>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n        <label class=\"label-get\">GET<\/label><\/p>\n<h6>\/wp-json\/geodir\/v2\/taxonomies\/gd_placecategory\/<\/h6>\n<\/p><\/div>\n<\/div>\n<pre>\r\n{\r\n    \"name\": \"Place Categories\",\r\n    \"slug\": \"gd_placecategory\",\r\n    \"description\": \"\",\r\n    \"types\": [\r\n        \"gd_place\"\r\n    ],\r\n    \"hierarchical\": true,\r\n    \"rest_base\": \"places\/categories\",\r\n    \"_links\": {\r\n        \"collection\": [\r\n            {\r\n                \"href\": \"http:\/\/local.newwp.test\/wp-json\/geodir\/v2\/taxonomies\"\r\n            }\r\n        ],\r\n        \"wp:items\": [\r\n            {\r\n                \"href\": \"http:\/\/local.newwp.test\/wp-json\/wp\/v2\/places\/categories\"\r\n            }\r\n        ],\r\n        \"curies\": [\r\n            {\r\n                \"name\": \"wp\",\r\n                \"href\": \"https:\/\/api.w.org\/{rel}\",\r\n                \"templated\": true\r\n            }\r\n        ]\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"featured_media":0,"parent":750,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[10],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/753"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=753"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/753\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/750"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=753"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}