{"id":66,"date":"2015-04-29T14:21:29","date_gmt":"2015-04-29T19:21:29","guid":{"rendered":"https:\/\/www.staging.javanator.org\/?p=66"},"modified":"2016-07-04T15:24:56","modified_gmt":"2016-07-04T20:24:56","slug":"rest-url-conventions","status":"publish","type":"post","link":"https:\/\/www.staging.javanator.org\/?p=66","title":{"rendered":"REST URL Conventions"},"content":{"rendered":"<table>\n<tbody>\n<tr>\n<td>GET<\/td>\n<td>\/locations<\/td>\n<td>Show all locations.<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/locations\/new<\/td>\n<td>Present form for creating new location.<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td>\/locations<\/td>\n<td>Create new location.<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/locations\/1<\/td>\n<td>Show location #1<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/locations\/1\/edit<\/td>\n<td>Present form for updating location #1.<\/td>\n<\/tr>\n<tr>\n<td>PUT<\/td>\n<td>\/locations\/1<\/td>\n<td>Update location #1<\/td>\n<\/tr>\n<tr>\n<td>DELETE<\/td>\n<td>\/locations\/1<\/td>\n<td>Delete location #1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Use URL parameters <code>_method=PUT<\/code> or <code>_method=DELETE<\/code> to generate HTTP verbs not available in browsers.<\/p>\n<p>Use Spring filter <a href=\"http:\/\/docs.spring.io\/autorepo\/docs\/spring-framework\/3.0.x\/javadoc-api\/org\/springframework\/web\/filter\/HiddenHttpMethodFilter.html\" target=\"_blank\">HiddenHttpMethodFilter<\/a> on the server side to support <code>_method<\/code> parameter.<\/p>\n<p><a href=\"http:\/\/microformats.org\/wiki\/rest\/urls\" target=\"_blank\">A Helpful Reference<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GET \/locations Show all locations. GET \/locations\/new Present form for creating new location. POST \/locations Create new location. GET \/locations\/1 Show location #1 GET \/locations\/1\/edit Present form for updating location #1. PUT \/locations\/1 Update location #1 DELETE \/locations\/1 Delete location #1 Use URL parameters _method=PUT or _method=DELETE to generate HTTP verbs not available in browsers. &hellip; <a href=\"https:\/\/www.staging.javanator.org\/?p=66\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;REST URL Conventions&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-rest"],"_links":{"self":[{"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66"}],"version-history":[{"count":5,"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":71,"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions\/71"}],"wp:attachment":[{"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.staging.javanator.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}