{"id":1681,"date":"2014-07-23T14:48:42","date_gmt":"2014-07-23T12:48:42","guid":{"rendered":"http:\/\/soci.hu\/blog\/?p=1681"},"modified":"2014-07-23T14:48:42","modified_gmt":"2014-07-23T12:48:42","slug":"rest-apik-verziozasa","status":"publish","type":"post","link":"https:\/\/soci.hu\/blog\/index.php\/2014\/07\/23\/rest-apik-verziozasa\/","title":{"rendered":"Rest apik verzi\u00f3z\u00e1sa"},"content":{"rendered":"<p>\u00c9rdekes <a href=\"http:\/\/www.troyhunt.com\/2014\/02\/your-api-versioning-is-wrong-which-is.html\">cikk<\/a> a t\u00e9m\u00e1r\u00f3l.<\/p>\n<p>Kiemelve a cikkb\u0151l:<\/p>\n<p>URL: You simply whack the API version into the URL, for example: https:\/\/haveibeenpwned.com\/api\/v2\/breachedaccount\/foo<br \/>\nCustom request header: You use the same URL as before but add a header such as \u201capi-version: 2\u201d<br \/>\nAccept header: You modify the accept header to specify the version, for example \u201cAccept: application\/vnd.haveibeenpwned.v2+json\u201d<\/p>\n<p>Ennek kapcs\u00e1n fil\u00f3zok valamin. A restes cuccok er\u0151forr\u00e1sokr\u00f3l sz\u00f3lnak, azaz ha adatokban gondolkodunk, entit\u00e1sokat c\u00edmz\u00fcnk meg, azokon v\u00e9gz\u00fcnk m\u0171veletet. De mi van, ha nem egy konkr\u00e9t entit\u00e1son kell v\u00e9gezni m\u0171veletet? Pl. Tiltsd le xy usert a rendszerben. Ez sokkal ink\u00e1bb operation jelleg\u0171 dolog, sok entit\u00e1st \u00e9rinthet, az ilyeneket nem szok\u00e1s rest alapon megcsin\u00e1lni, j\u00f3l \u00e9rzem? De ha nem, akkor hogy?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00c9rdekes cikk a t\u00e9m\u00e1r\u00f3l. Kiemelve a cikkb\u0151l: URL: You simply whack the API version into the URL, for example: https:\/\/haveibeenpwned.com\/api\/v2\/breachedaccount\/foo Custom request&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1681","post","type-post","status-publish","format-standard","hentry","category-szakmai-elet"],"_links":{"self":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1681"}],"version-history":[{"count":1,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1681\/revisions"}],"predecessor-version":[{"id":1682,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1681\/revisions\/1682"}],"wp:attachment":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}