{"id":397867,"date":"2024-04-15T08:00:00","date_gmt":"2024-04-15T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/rest-api-extender\/"},"modified":"2024-04-16T15:31:00","modified_gmt":"2024-04-16T15:31:00","slug":"rest-api-extender","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/rest-api-extender\/","title":{"rendered":"REST API Extender"},"content":{"rendered":"<p>The REST API Extender is a WordPress plugin that extends the functionality of the WordPress REST API.<\/p>\n<p>It provides two main features:<\/p>\n<ol>\n<li><strong>Permalink Options Management<\/strong><br \/>\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<p>To update the permalink settings, send a POST request to the following endpoint:<br \/>\n\/wp-json\/raext\/permalink-options\/v1\/settings<\/p>\n<p>The request body should include the following parameters:<\/p>\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<p>Example request:<br \/>\nPOST \/wp-json\/raext\/permalink-options\/v1\/settings<br \/>\nContent-Type: application\/json<\/p>\n<p>{<br \/>\n\u201cpermalink_structure\u201d: \u201c\/%year%\/%postname%\/\u201d,<br \/>\n\u201ccategory_base\u201d: \u201ccategories\u201d,<br \/>\n\u201ctag_base\u201d: \u201ctags\u201d<br \/>\n}<\/p>\n<ol>\n<li><strong>Theme Installation and Activation<\/strong><br \/>\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<p>To install and activate a theme from a remote URL, send a POST request to the following endpoint:<br \/>\n\/wp-json\/raext\/theme-manager\/v1\/install<\/p>\n<p>The request body should include the following parameters:<\/p>\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<p>Example request:<br \/>\nPOST \/wp-json\/raext\/theme-manager\/v1\/install<br \/>\nContent-Type: application\/json<\/p>\n<p>{<br \/>\n\u201ctheme_url\u201d: \u201chttps:\/\/example.com\/themes\/twentytwenty.zip\u201d,<br \/>\n\u201ctheme_stylesheet\u201d: \u201ctwentytwenty\u201d,<br \/>\n\u201ctheme_slug\u201d: \u201ctwentytwenty\u201d<br \/>\n}<\/p>\n<p>Developed by the creators of <a href=\"https:\/\/seoneo.io\/\" rel=\"nofollow ugc\">SEO Neo<\/a><\/p>\n<h3>Permissions<\/h3>\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","protected":false},"excerpt":{"rendered":"<p>The REST API Extender is a WordPress plugin that extends the functionality of the WordPress REST API.<\/p>\n","protected":false},"author":65,"featured_media":397868,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"REST API Extender - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"The REST API Extender is a WordPress plugin that extends the functionality of the WordPress REST API."},"footnotes":""},"categories":[1],"tags":[1844,1222,1425,3144,768],"class_list":["post-397867","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-appearance","tag-options","tag-permalink","tag-rest-api","tag-theme"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/397867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=397867"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/397867\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/397868"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=397867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=397867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=397867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}