{"id":704,"date":"2006-02-20T00:00:00","date_gmt":"2006-02-19T23:00:00","guid":{"rendered":"https:\/\/wwwneu.strehle.de\/tim\/weblog\/archives\/2006\/02\/20\/642\/"},"modified":"2006-02-20T00:00:00","modified_gmt":"2006-02-19T23:00:00","slug":"642","status":"publish","type":"post","link":"https:\/\/www.strehle.de\/tim\/weblog\/archives\/2006\/02\/20\/642\/","title":{"rendered":"Versioning REST"},"content":{"rendered":"<p>Adam Kalsey &#8211; <a href=\"http:\/\/kalsey.com\/2006\/02\/versioning_rest\/\" title=\"Versioning REST :: Adam Kalsey\">Versioning REST<\/a>:<\/p>\n<p>&#8222;One thing I dislike about URL schemes for versioning a web services resource is it feels decidedly un-RESTful. The URL of a resource shouldn\u2019t change simply because the format of that resource\u2019s representation does.<\/p>\n<p>[&#8230;] In Tagyu, I\u2019ve going to accomplish this by placing a &lt;versions\/&gt; element in the XML file. This element will provide access to the previous, next, and latest resource representations as well as a reference for which one is being used currently. Instead of referring to versions with version numbers, I\u2019m using the date that the version was released, simply because this date has more meaning than an arbitrarily-chosen version number.&#8220;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adam Kalsey &#8211; Versioning REST: &#8222;One thing I dislike about URL schemes for versioning a web services resource is it feels decidedly un-RESTful. The URL of a resource shouldn\u2019t change simply because the format of that resource\u2019s representation does. [&#8230;] In Tagyu, I\u2019ve going to accomplish this by placing a &lt;versions\/&gt; element in the XML [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[1],"tags":[],"class_list":["post-704","post","type-post","status-publish","format-standard","hentry","category-weblog"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":0,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}