Changes between Version 29 and Version 30 of RESTController
- Timestamp:
- 04/06/10 22:49:01 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESTController
v29 v30 22 22 * [wiki:S3XRC JSON] as light-weight alternative for AJAX-style resource access 23 23 24 == JoinedResources ==24 == Resources == 25 25 26 ''(This extends the single-table [wiki:BluePrintRESTImplementation REST Implementation])'' 26 Resources 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. 27 27 28 A '''joining request''' is a request to a table ('''component''') in dependency of a join to another table ('''resource'''), e.g.:28 Attributes 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''. 29 29 30 * the list of addresses (=component) of a person (=resource)30 ''Components are stored in separate database tables which reference the primary resource record.'' 31 31 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 32 Resources as well as their components and methods can be addressed by URL's. 42 33 == URL Argument Lists == 43 34