REST + JSON = #winning!
So I was delighted to read two nice posts on these matters recently on Apigee’s “API Best Practices and Infrastructure” blog.
The first, “REST API design for SQL programmers“, is actually a short slide presentation (accessible via Slideshare here). It walks you through designing a well thought out, simple, easy to use web API when you’re used to thinking in SQL. Apigee CTO Greg Brail (@gbrail) uses an employee database example to show you how to design a RESTful API to access, add, and remove employee data. This presentation is recommended for anyone getting up to speed with REST or especially for someone designing a RESTful API for the first time. Simple and concise, just as it should be.
The second, “Not serving JSON AND JSONP? Then you’re doing it wrong!“, is a blog post from Mr. Brail explaining why we’re seeing such a tremendous rise in JSON and the related JSONP. In a nutshell, this approach leads to smaller messages being sent across the network, very important for anyone doing mobile work. Because JSON is less complicated than many alternatives, this approach often also results in faster parsing and manipulation of the message contents.
Click to read the complete post via the PayPal X Developer Network. Your comments there would be greatly appreciated.