Changes between Version 8 and Version 9 of S3/S3REST/URLFormat
- Timestamp:
- 10/28/10 09:57:52 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified S3/S3REST/URLFormat
v8 v9 8 8 - ''Parts in { } mark optional parts, [ A | B ] indicates alternatives'' 9 9 10 The basic URL format is: /'''prefix'''/'''name'''{ /<'''arguments'''> }{ ?<'''query'''> }10 The basic URL format is: 11 11 12 * '''prefix''' is the resource prefix (="module" name) 13 * '''name''' is the resource name (without prefix) 12 ''!http:// server / path'' / '''prefix''' / '''name'''{ /<'''arguments'''> }{ ?<'''query'''> } 14 13 15 * '''arguments''' is a list of: { /'''id''' }{ / [ '''method''' | '''component''' { /'''component_id''' } { /'''method''' } ] } 16 * '''id''' is a record ID in the main resource 17 * '''component''' is a component resource name (without prefix) 18 * '''component_id''' is a record ID in the component resource 19 * '''method''' is a URL method (only in GET/POST requests, e.g. "create", "update" or "delete") 14 ''Example:'' 15 {{{ 16 http://vita.sahanafoundation.org/eden/hms/hospital/1/bed_capacity/create 17 }}} 20 18 21 * '''query''' syntax see below19 * server ({{{/eden}}}) is the server ({{{vita.sahanafoundation.org}}}), path the path to the application 22 20 21 * '''prefix''' ('''{{{/hms}}}''') is the application prefix (="module" name) of the resource 22 * '''name''' ('''{{{/hospital}}}''') is the resource name (without prefix) 23 24 The '''arguments''' list consists of: 25 26 { /'''id''' }{ / [ '''method''' | '''component''' { /'''component_id''' } { /'''method''' } ] } 27 28 * '''id''' ('''{{{/1}}}''') is a record ID in the main resource 29 * '''component''' ('''{{{/bed_capacity}}}''') is a component resource name (without prefix) 30 * '''component_id''' is a record ID in the component resource 31 * '''method''' ('''{{{/create}}}''') is a URL [wiki:S3XRC/RESTfulAPI/Methods method] 32 33 For the '''query''' syntax, see below 23 34 == Basic Query Format == 24 35