hosh / intermodal

Intermodal: RESTful API kit for Rails 3.0+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returned API objects should have hyperlinks

hosh opened this issue · comments

POST /books

-> creates a new book, but should return something like

Location: http://api.myapi.com/books/10.json

Or

{ 'book': { ... },
'uri': 'http://api.myapi.com/books/10.json' }

Obstacles: Requires additional coupling between metaprogrammed controllers and the app itself. (Maybe store some of the this information inside the API (Engine) class).