I recently encountered an interesting problem while sketching out a RESTful API for a side project with the JSON API specification. I’m definitely not the first person to run into this problem, but it ended up being a great thought exercise for designing APIs and better understanding the client-server relationship.
Ember Data has strong opinions on how it wants you to structure your data and your API, which are essentially collapsed into one by its default paradigm. If you are using ActiveModelSerializer, the path of least resistance is to have your DS.Model classes essentially mirror your ActiveRecord classes, to the point where I feel like […]
I’ve previously blogged about DropWizard, a Java web framework for developing RESTful web services. One of Dropwizard’s great features is its ability to easily write and deploy runtime administrative tasks for you application.
After watching the presentation CRUD is not REST – Hypermedia for Y’all! by Nick Sutterer (also known for Apotomo) I was delighted to see mention of all the parts of REST that I find myself repeating most frequently: Representations of resources should be uniform Use hypermedia—not URL schemes or resource name mapping—to represent relationships Use […]
When mapping a Backbone Model directly to a REST API it is common for the resource you’re accessing to have a nested or associated resources. Backbone Models are a wrapper for a single resource, but do not attempt to implement a nested resource relationship. Backbone Collections also provide a nice mechanism to fetch multiple resources […]