{"id":1120,"date":"2009-12-31T21:51:48","date_gmt":"2010-01-01T03:51:48","guid":{"rendered":"http:\/\/bililite.nfshost.com\/blog\/?p=1120"},"modified":"2009-12-31T23:53:44","modified_gmt":"2010-01-01T05:53:44","slug":"bililite-com-webservices","status":"publish","type":"post","link":"https:\/\/bililite.com\/blog\/2009\/12\/31\/bililite-com-webservices\/","title":{"rendered":"bililite.com webservices"},"content":{"rendered":"<p>I've been spending my project time learning how to manipulate images in PHP to let me create custom growth charts and the like, with a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Representational_State_Transfer\">RESTful<\/a> interface that would allow them to be used as the source of &lt;img&gt; elements. I like the way things turned out; they are available at <a href=\"\/webservices\/\">bililite.com\/webservices\/<\/a>. It includes height,weight, head circumference, peak expiratory flow (for managing asthma), blood pressure and bilirubin levels. While it took a fair amount of trial-and-error to get things to work, I don't think there's much that's innovative enough programming-wise to write a tutorial.<\/p>\r\n<p>I want to get it to parse the Accept: header, so  users can leave out the file extensions, but it looks like <a href=\"http:\/\/www.newmediacampaigns.com\/page\/browser-rest-http-accept-headers\">browsers don't implement that correctly<\/a>, so I'll have to keep using extensions as well.<\/p>\r\n<p>I still need to learn more about caching and effectively using eTags and all the headers that go with it. It always makes my brain hurt.<\/p>","protected":false},"excerpt":{"rendered":"I've been spending my project time learning how to manipulate images in PHP to let me create custom growth charts and the like, with a RESTful interface that would allow them to be used as the source of &lt;img&gt; elements. I like the way things turned out; they are available at bililite.com\/webservices\/. It includes height,weight, [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,9],"tags":[],"_links":{"self":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/1120"}],"collection":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/comments?post=1120"}],"version-history":[{"count":5,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/1120\/revisions"}],"predecessor-version":[{"id":1122,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/1120\/revisions\/1122"}],"wp:attachment":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/media?parent=1120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/categories?post=1120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/tags?post=1120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}