Changes between Version 29 and Version 30 of RESTController


Ignore:
Timestamp:
04/06/10 22:49:01 (12 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v29 v30  
    2222    * [wiki:S3XRC JSON] as light-weight alternative for AJAX-style resource access
    2323
    24 == Joined Resources ==
     24== Resources ==
    2525
    26 ''(This extends the single-table [wiki:BluePrintRESTImplementation REST Implementation])''
     26Resources are data objects of the application, which can have attributes and methods. Attribute values are stored in the data store of the application (usually the local database), while methods are provided by the controller function of the particular resource.
    2727
    28 A '''joining request''' is a request to a table ('''component''') in dependency of a join to another table ('''resource'''), e.g.:
     28Attributes can be simple (=atomic types) or complex (=object types), e.g. in a "person" resource the "first_name" attribute is of an atomic type (=string), while the "address" attribute is of an object type (=pr_address). Complex attributes in S3 are also called ''Components''.
    2929
    30   * the list of addresses (=component) of a person (=resource)
     30  ''Components are stored in separate database tables which reference the primary resource record.''
    3131
    32 A resource and its components together represent a "Joined Resource".
    33 
    34 There are different ways how such joined resources can be seen:
    35 
    36   - as database tables with embedded subtables
    37   - as data objects with structured properties
    38   - as compound objects with component classes
    39 
    40 In this implementation, component tables can be joined 1:1 or N:1 to their primary resources, either by natural joins (same key field in both tables) or primary/foreign key matches, where the primary key is always the 'id' field in the primary table.
    41 
     32Resources as well as their components and methods can be addressed by URL's.
    4233== URL Argument Lists ==
    4334