-
Notifications
You must be signed in to change notification settings - Fork 68
Home
fabrik42 edited this page Sep 24, 2011
·
32 revisions
An introduction to acts_as_api
Examples of the default response formats
Differences to the Rails 3 default JSON response structure
DRY API Controllers using Rails 3 Responders
Add meta data (like pagination info) to your response
Extending an existing api template
Calling a lambda in the api template
Calling a scope of a sub resource
Conditional statements for adding a field to the api template
Creating a completely different response structure
Keep your API templates out of your models
Model callbacks (including an example for caching api responses)
A pragmatic approach of API versioning
Declaring API templates for any class! (no ORMs)
Support custom response formats (example for MessagePack)