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 3.x - HTTP_Users_Services and 3.x - HTTP_Contacts_Services sample web service routines make use of HTTP_Resource_Services.
Services
| Service | Description |
|---|---|
| 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.