{"id":52798,"date":"2016-01-14T06:09:56","date_gmt":"2016-01-14T06:09:56","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-rest-api-sidebars\/"},"modified":"2016-01-14T15:37:54","modified_gmt":"2016-01-14T15:37:54","slug":"wp-rest-api-sidebars","status":"publish","type":"plugin","link":"https:\/\/ssw.wordpress.org\/plugins\/wp-rest-api-sidebars\/","author":13949593,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.1","stable_tag":"0.1.1","tested":"4.4.34","requires":"4.4","requires_php":"","requires_plugins":"","header_name":"WP REST API Sidebars","header_author":"Martin Pettersson <martin_pettersson@outlook.com>","header_description":"","assets_banners_color":"","last_updated":"2016-01-14 15:37:54","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/example.com\/","header_plugin_uri":"https:\/\/github.com\/martin-pettersson\/wp-rest-api-sidebars","header_author_uri":"https:\/\/github.com\/martin-pettersson","rating":5,"author_block_rating":0,"active_installs":100,"downloads":72635,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"0.1.1":"<p>This release changes the endpoint namespace and therefore breaks compatibility with any active clients.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1556,1118,2299,23853,168],"plugin_category":[43],"plugin_contributors":[96295],"plugin_business_model":[],"class_list":["post-52798","plugin","type-plugin","status-publish","hentry","plugin_tags-api","plugin_tags-json","plugin_tags-rest","plugin_tags-rest-api","plugin_tags-sidebar","plugin_category-customization","plugin_contributors-njetskive","plugin_committers-njetskive"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-rest-api-sidebars.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>An extension for the WP REST API that exposes endpoints for sidebars and widgets.<\/p>\n\n<p><em>note: this plugin is under heavy development and will receive frequent feature updates (including documentation) so stay tuned and checkout the <a href=\"https:\/\/github.com\/martin-pettersson\/wp-rest-api-sidebars\">github<\/a> repo for the latest updates<\/em>\n<h4>Currently supported endpoints<\/h4><\/p>\n\n<p><strong>\/wp-json\/wp-rest-api-sidebars\/v1\/sidebars<\/strong> <em>returns a list of registered sidebars<\/em><\/p>\n\n<pre><code>[\n    {\n        \"name\": \"Sidebar Name\",\n        \"id\": \"sidebar-id\",\n        \"description\": \"Sidebar description...\",\n        \"class\": \"sidebar-class\",\n        \"before_widget\": \"&lt;aside id=\\\"%1$s\\\" class=\\\"widget %2$s\\\"&gt;\",\n        \"after_widget\": \"&lt;\\\/aside&gt;\",\n        \"before_title\": \"&lt;h1 class=\\\"widget-title\\\"&gt;\",\n        \"after_title\": \"&lt;\\\/h1&gt;\"\n    }\n]\n<\/code><\/pre>\n\n<p><strong>\/wp-json\/wp-rest-api-sidebars\/v1\/sidebars\/{id}<\/strong> <em>returns the given sidebar<\/em><\/p>\n\n<pre><code>{\n    \"name\": \"Sidebar Name\",\n    \"id\": \"sidebar-id\",\n    \"description\": \"Sidebar description...\",\n    \"class\": \"sidebar-class\",\n    \"before_widget\": \"&lt;aside id=\\\"%1$s\\\" class=\\\"widget %2$s\\\"&gt;\",\n    \"after_widget\": \"&lt;\\\/aside&gt;\",\n    \"before_title\": \"&lt;h1 class=\\\"widget-title\\\"&gt;\",\n    \"after_title\": \"&lt;\\\/h1&gt;\",\n    \"rendered\": \"&lt;aside id=\\\"widget-id-1\\\" class=\\\"widget widget_widget-id\\\"&gt;...\",\n    \"widgets\": [\n        {\n            \"name\": \"Widget Name\",\n            \"id\": \"widget-name-1\",\n            \"classname\": \"widget_widget_name\",\n            \"description\": \"Widget description\",\n            \"rendered\": \"&lt;aside id=\\\"widget-names-1\\\" class=\\\"widget widget_widget_name\\\"&gt;...\"\n        }\n    ]\n}\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>Get the content to the plugin directory and activate the plugin<\/p>\n\n<p>note: to enable you to use any version\/branch of the <a href=\"https:\/\/wordpress.org\/plugins\/rest-api\">WP REST API<\/a> plugin during this rapid development phase there is currently no good way to check if it is active. Therefore make sure that it is before you activate this plugin.<\/p>\n\n<!--section=changelog-->\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Now using a plugin specific endpoint namespace: \/wp-rest-api-sidebars\/v1<\/li>\n<li>Including widgets in the \/sidebars\/{id} response<\/li>\n<\/ul>","raw_excerpt":"An extension for the WP REST API that exposes endpoints for sidebars and widgets.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=52798"}],"author":[{"embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/njetskive"}],"wp:attachment":[{"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52798"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52798"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52798"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52798"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52798"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}