You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nesquena edited this page Feb 9, 2012
·
7 revisions
RABL allows for varying levels of flexibility depending on the needs of an API. The most extreme of this flexibility is constructing responses not based on a record at all:
objectfalse# uses no recordnode(:message){"..."}node(:data)do@objects.map{ |o| {:name=>o.name}}endnode(:meta){"..."}