| [Top] Fins
 Fins.RESTController
 
 | Class Fins.RESTController
Description
A controller that impliments REST style JSON CRUD functionality
 for a given Model component.Note
some TODO items   user authenticated changes   filtering more complex than by-field   search specifications for GET   methods other than GET   record set limitations 
 
 
 
Inherit
MethodController
inherit Fins.MethodController : MethodController 
 
 
 
Variable
model_component
protected  string Fins.RESTController.model_componentDescription
this should be the name of your object type and is used to link this
 controller to the model. For auto-configured models, this is normally
 a capitalized singular version of your table. For example, if your
 table is called "users", this would be "User". 
 
Variable
model_id
protected  string Fins.RESTController.model_idDescription
if your application contains multiple model definitions, this should be the 
 model "id" for the definition containing the component. the default value
 selects the default model definition. 
 
Variable
fields_to_filter
protected  multiset Fins.RESTController.fields_to_filterDescription
a list of fields to filter from generated JSON for this type.Note
this filter specification is shared with other JSON generating controllers
  running in this app, so that filtering is consistent, should an object of 
  this type be present and rendered in another RESTController . 
 
Variable
transform_function
protected  function(array|object:array|mapping|object) Fins.RESTController.transform_functionDescription
function used to modify the data.   receives an object or array of objects and returns an array, mapping or object. 
 |