{"id":56,"date":"2002-11-19T18:32:00","date_gmt":"2002-11-19T22:32:00","guid":{"rendered":"http:\/\/www.markbaker.ca\/wp\/?p=16"},"modified":"2002-11-19T18:32:00","modified_gmt":"2002-11-19T22:32:00","slug":"uniform-interface-take-12","status":"publish","type":"post","link":"http:\/\/www.markbaker.ca\/blog\/2002\/11\/uniform-interface-take-12\/","title":{"rendered":"Uniform Interface, take 12"},"content":{"rendered":"<p>Greg Reinacker <a href=\"http:\/\/www.rassoc.com\/gregr\/weblog\/2002\/11\/19.html#a95\">responds<\/a> to the earlier discussion Jon Udell and I were having about uniform interfaces.  The emphasis of his response is on my <a href=\"http:\/\/lists.w3.org\/Archives\/Public\/www-ws-arch\/2002Jun\/0085\">generalization post to www-ws-arch<\/a>, in particular the part where I generalized from getStockQuote() to getQuote().  He may very well have a point that this step is pointless, I don&#8217;t know.  But it was just an example of a step; perhaps a better example could be found.  The main point of the post was the first step and the last; from the unparameterized, good-for-retrieving-one-thing-only method, to the good-for-any-safe-retrieval method.<\/p>\n\n<p>Then, as I <a href=\"http:\/\/www.markbaker.ca\/2002\/09\/Blog\/2002\/11\/08#2002-11-udell-interfaces\">responded to Jon<\/a>, the value of doing that is because <em>deploying new interfaces is extremely expensive<\/em>.  If you&#8217;ve got an interface that can do what you need, then you&#8217;re better off using it.<\/p>\n\n<p>Greg did have this to say in his conclusion, which I&#8217;d like to comment on;<\/p>\n\n<blockquote>\nYou can retrieve anything the same way, but you can&#8217;t process it without knowing more specifically what it is.\n<\/blockquote>\n\n<p>I can&#8217;t emphasize enough how important this point is.  Being able to retrieve anything is a <em>big<\/em> win.  Processing it is indeed an issue, and a non-trivial one (as I <a href=\"http:\/\/www.markbaker.ca\/blog\/\/2002\/11\/17#2002-11-rdf\">just alluded to<\/a>), but with Web services, you&#8217;ve got both the problem of being able to get the data <em>and<\/em> the problem of knowing how to process it.  The Web solves the first problem, and that&#8217;s just with the GET method!<\/p>","protected":false},"excerpt":{"rendered":"Greg Reinacker responds to the earlier discussion Jon Udell and I were having about uniform interfaces. The emphasis of his response is on my generalization post to www-ws-arch, in particular the part where I generalized from getStockQuote() to getQuote(). He may very well have a point that this step is pointless, I don&#8217;t know. But [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[30],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-standards"],"_links":{"self":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":0,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}