A DSL for specifying HATEOS JSON APIs in Rails 3