method

api_behavior

api_behavior(error)
protected

This is the common behavior for "API" requests, like :xml and :json.