Tiger_Model_ResponseObject

@api

Tiger_Model_ResponseObject — the standard API response envelope.

The heart of the TIGER webservice contract (see the "REST is Dying" article): every /api response is THIS object, serialized as JSON, so the client always finds the same shape. Ported from AskLevi's Levi_Model_ResponseObject.

{ "result": 1, "data": null, "messages": [] } // minimum

result is 1 (success) / 0 (failure). Services add only what they need — redirect, form (Zend_Form field errors), or a richer data payload. Special-purpose consumers (DataTables, Select2) can return their own shapes; this is the default contract.