{"id":189817,"date":"2024-04-15T14:43:09","date_gmt":"2024-04-15T14:43:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/permalink-options-extender\/"},"modified":"2024-04-16T07:31:51","modified_gmt":"2024-04-16T07:31:51","slug":"rest-api-extender","status":"publish","type":"plugin","link":"https:\/\/bg.wordpress.org\/plugins\/rest-api-extender\/","author":22010673,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2","stable_tag":"trunk","tested":"6.4.8","requires":"5.0","requires_php":"","requires_plugins":null,"header_name":"REST API extender","header_author":"SEO Neo","header_description":"Extends the WP REST API to allow the changing of permalink options, as well as the installation and switching of themes","assets_banners_color":"c6bae4","last_updated":"2024-04-16 07:31:51","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/seoneo.io\/","header_author_uri":"https:\/\/seoneo.io\/","rating":0,"author_block_rating":0,"active_installs":20,"downloads":775,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3070916,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3070916,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3070936,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3070936,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2769,2218,2662,23853,1141],"plugin_category":[],"plugin_contributors":[226658],"plugin_business_model":[],"class_list":["post-189817","plugin","type-plugin","status-publish","hentry","plugin_tags-appearance","plugin_tags-options","plugin_tags-permalink","plugin_tags-rest-api","plugin_tags-theme","plugin_contributors-stealthcode","plugin_committers-stealthcode"],"banners":{"banner":"https:\/\/ps.w.org\/rest-api-extender\/assets\/banner-772x250.png?rev=3070936","banner_2x":"https:\/\/ps.w.org\/rest-api-extender\/assets\/banner-1544x500.png?rev=3070936","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/rest-api-extender\/assets\/icon-128x128.png?rev=3070916","icon_2x":"https:\/\/ps.w.org\/rest-api-extender\/assets\/icon-256x256.png?rev=3070916","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The REST API Extender is a WordPress plugin that extends the functionality of the WordPress REST API.<\/p>\n\n<p>It provides two main features:<\/p>\n\n<ol>\n<li><strong>Permalink Options Management<\/strong>\nThis plugin allows you to update the permalink settings of your WordPress site via the REST API. You can change the permalink structure, category base, and tag base using a simple POST request.<\/li>\n<\/ol>\n\n<p>To update the permalink settings, send a POST request to the following endpoint:\n\/wp-json\/raext\/permalink-options\/v1\/settings<\/p>\n\n<p>The request body should include the following parameters:<\/p>\n\n<ul>\n<li><code>permalink_structure<\/code> (string): The new permalink structure.<\/li>\n<li><code>category_base<\/code> (string, optional): The new category base.<\/li>\n<li><code>tag_base<\/code> (string, optional): The new tag base.<\/li>\n<\/ul>\n\n<p>Example request:\nPOST \/wp-json\/raext\/permalink-options\/v1\/settings\nContent-Type: application\/json<\/p>\n\n<p>{\n\"permalink_structure\": \"\/%year%\/%postname%\/\",\n\"category_base\": \"categories\",\n\"tag_base\": \"tags\"\n}<\/p>\n\n<ol>\n<li><strong>Theme Installation and Activation<\/strong>\nThe plugin also enables you to install and activate themes from a remote URL using the REST API. You have to provide the theme URL, stylesheet, and slug, and the plugin will handle the installation and activation process.<\/li>\n<\/ol>\n\n<p>To install and activate a theme from a remote URL, send a POST request to the following endpoint:\n\/wp-json\/raext\/theme-manager\/v1\/install<\/p>\n\n<p>The request body should include the following parameters:<\/p>\n\n<ul>\n<li><code>theme_url<\/code> (string): The URL of the theme ZIP file.<\/li>\n<li><code>theme_stylesheet<\/code> (string): The stylesheet of the theme (e.g., <code>twentytwenty<\/code>).<\/li>\n<li><code>theme_slug<\/code> (string): The slug of the theme (e.g., <code>twentytwenty<\/code>).<\/li>\n<\/ul>\n\n<p>Example request:\nPOST \/wp-json\/raext\/theme-manager\/v1\/install\nContent-Type: application\/json<\/p>\n\n<p>{\n\"theme_url\": \"https:\/\/example.com\/themes\/twentytwenty.zip\",\n\"theme_stylesheet\": \"twentytwenty\",\n\"theme_slug\": \"twentytwenty\"\n}<\/p>\n\n<p>Developed by the creators of <a href=\"https:\/\/seoneo.io\/\">SEO Neo<\/a><\/p>\n\n<h3>Permissions<\/h3>\n\n<p>Both the permalink options management and theme installation\/activation features require the user to have the <code>manage_options<\/code> capability (an administrator role).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>rest-api-extender<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory on your WordPress site.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>","raw_excerpt":"The REST API Extender is a WordPress plugin that extends the functionality of the WordPress REST API.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/189817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=189817"}],"author":[{"embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/stealthcode"}],"wp:attachment":[{"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=189817"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=189817"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=189817"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=189817"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=189817"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=189817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}