{"id":29214,"date":"2014-05-02T13:48:39","date_gmt":"2014-05-02T13:48:39","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-on-routes\/"},"modified":"2015-03-01T16:52:59","modified_gmt":"2015-03-01T16:52:59","slug":"wp-on-routes","status":"closed","type":"plugin","link":"https:\/\/bcc.wordpress.org\/plugins\/wp-on-routes\/","author":5776076,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3.0","stable_tag":"0.3.0","tested":"4.1.42","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"WordPress on Routes","header_author":"Marko Jakic","header_description":"","assets_banners_color":"","last_updated":"2015-03-01 16:52:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/markzero\/wp-on-routes","header_author_uri":"http:\/\/markojakic.net\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1435,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.2.0","0.3.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[69972,69971,69970,13089,12528],"plugin_category":[],"plugin_contributors":[82361],"plugin_business_model":[],"class_list":["post-29214","plugin","type-plugin","status-closed","hentry","plugin_tags-custom-parameters","plugin_tags-custom-paths","plugin_tags-http-method","plugin_tags-path","plugin_tags-routes","plugin_contributors-markzero","plugin_committers-markzero"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-on-routes.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WordPress on Routes is a plugin for WordPress, inspired mainly by Ruby micro-frameworks. It adds ability to add custom routes to your WordPress instance. Useful for form submissions, API-like features, etc.<\/p>\n\n<p>This plugin allows you to:<\/p>\n\n<ol>\n<li>Add custom routes to your WordPress installation<\/li>\n<li>Set method GET\/POST\/DELETE etc.<\/li>\n<li>Set body (as text, or template) or action (using add\/do_action). If both are defined, <code>action<\/code> takes precedence over <code>body<\/code>.<\/li>\n<li>Set header (e.g. 'Content-Type' =&gt; 'text\/html; charset=UTF-8')<\/li>\n<li>Exclude header (e.g. 'Set-Cookie')<\/li>\n<li>Set parameter like '\/my\/route\/:param1\/:param2'<\/li>\n<li>Add agents or filter by agents, using regular expressions<\/li>\n<li>Agent filter for negative logic (e.g. \/^((?!Firefox).)<em>$\/, which tells \"every browser except Firefox\")<\/em><\/li>\n<li>Include header and footer<\/li>\n<\/ol>\n\n<p>For basic and advanced usage examples, take a look at <a href=\"https:\/\/github.com\/markzero\/wp-on-routes\">https:\/\/github.com\/markzero\/wp-on-routes<\/a>.<\/p>\n\n<!--section=installation-->\n<p>Good old plugin installation applies here too - download it \/ clone it to <code>plugins\/<\/code> dir, activate.<\/p>\n\n<p>If you want to clone it, here is the repository: <a href=\"https:\/\/github.com\/markzero\/wp-on-routes\">https:\/\/github.com\/markzero\/wp-on-routes<\/a><\/p>\n\n<p>No UI involved.<\/p>\n\n<!--section=changelog-->\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Added predefined path <code>\/posts.json<\/code> to get all posts list as application\/json response<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Added test environment and some tests for methods, parameters and splats<\/li>\n<\/ul>","raw_excerpt":"This plugin adds API-like functionality to your WordPress instance.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29214"}],"author":[{"embeddable":true,"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/markzero"}],"wp:attachment":[{"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29214"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29214"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29214"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29214"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29214"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bcc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}