Application service module that provides simple CRUD operations for resources that map directly to database tables.
Syntax
Response = HTTP_Resource_Services(@Service, @Params)
Returns
The meaning of the response value depends on the service.
Parameters
Parameter | Description |
---|---|
@Service | The name of the service being requested. Required. |
@Params | Generic parameters. Refer to a specific service to determine the actual parameters used. |
Remarks
HTTP_Resource_Services
is a helpful application service module that web service routines can use to perform common database operations. This works well for web services that are tightly associated with a single database table. For example, a URL with /customers
is likely to be directly linked to a CUSTOMERS database table.
Both the included HTTP_Users_Services and HTTP_Contacts_Services sample web service routines make use of HTTP_Resource_Services
.
Services
Service | Description |
---|---|
GetObject | Usage: Comments: Returns: |
GetObjects | Usage: Comments: Returns: |
ParseResource | Usage: Comments: Returns: |
AddProperty | Usage: Comments: Returns: |
AddProperties | Usage: Comments: Returns: |
AddSubProperty | Usage: Comments: Returns: |
AddSubProperties | Usage: Comments: Returns: |
AddSubResourceObject | Usage: Comments: Returns: |
AddSubResourceObjects | Usage: Comments: Returns: |
AddSubResource | Usage: Comments: Returns: |
AddSubResources | Usage: Comments: Returns: |
AddLinkRelation | Usage: Comments: Returns: |
AddLinkRelations | Usage: Comments: Returns: |
AddEmbeddedResources | Usage: Comments: Returns: |
AddFormAction | Usage: Comments: Returns: |
GetSerializedResource | Usage: Comments: Returns: |
LoremIpsum | Usage: Comments: Returns: |
GetURLTemplate | Usage: Comments: Returns: |
GetDatabaseItem | Usage: Comments: Returns: |
GetDatabaseItems | Usage: Comments: Returns: |
DeleteDatabaseItem | Usage: Comments: Returns: |
PutDatabaseItem | Usage: Comments: Returns: |
PostDatabaseItem | Usage: Comments: Returns: |
PatchDatabaseItem | Usage: Comments: Returns: |
GetColumnNames | Usage: Comments:
Returns: |
GetColumnValues | Usage: Comments: Returns: |
GetMVGroupNames | Usage: Comments: Returns: |
Params
The proper use of the generic arguments are defined in the definition of each service above.