We'll respond shortly.
In this post, Pivotal Labs Engineering Manager, David Julia, provides an example of a problematic RESTful JSON API and an approach for refactoring it. When API designs are implicit, they don’t reveal and enable the intended API usage, and they become very difficult to implement. In today’s world of cloud connectivity and developer community, poorly designed API can greatly slow down or stop software service adoption in its tracks, not to mention the public feedback for poor APIs. David’s approach, and the related code, clearly explain some of the key considerations.
There are many blogs about how to expose an API for a Rails application and many times I look at this and am concerned about how these examples often leak the application design and the schema out through the API. … Read more
REST principles by default is a fantastic convention within Rails applications. The documentation for how to route HTTP requests are comprehensive and give examples about photo resources within an application. If you’ve got photo and tag as first class resources … Read more
Access Control is a simple idea. We want company employees to be able to delete inappropriate content; but random Users cannot. Here I propose one way to implement Access Control that has the particular advantage of being very general, very concise, and unlikely to be violated. I call it RESTful Access Control.
REST. What is it, and how can it be used to design better web applications?
A presentation at RailsConf did me a great service by first pointing out all the things REST is not. It isn't CRUD. It isn't pretty URLs. It is neither a protocol nor an architecture, but it can play a role in your implementation of all of the above. REST itself though, is less concrete than all of that. It is a theoretical framework, a way of thinking about designing distributed software systems. For me, the first step in absorbing its principles is to forget about the database and focus on the fundamentals. This article will start there, then drill down to show how these ideas can help organize the development of your Rails applications.
(Noon: Rest From Work (After Millet) by Vincent Van Gogh)