Page History
...
Parameter | Description |
---|---|
Service | The name of the service being requested. Required. |
Param1 - Param10 | Generic parameters. |
Remarks
The SRP HTTP Framework supports two popular JSON friendly data formats: HAL and Schema. HAL stands for Hypermedia Application Language and is an emerging format that implements the HATEOAS constraint of REST. There are other formats that are also emerging and none hold dominance at this point. Likewise, JSON itself stands alongside XML as a widely accepted general purpose format for representing resources. Therefore, if you need or prefer to use another format then you are welcome to extend HTTP_JSON_Services
(in case you want to use a different hypermedia format, such as Collection) or write a new service such as HTTP_XML_Services
(in case you want to use a different data format, such as XML).
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
Schema is a meta-data format. It is used to notify clients what kind of data is available, which is handy when user interfaces need to be dynamically built. Schema can be used to define if a prompt is text, numeric, date, combobox, Boolean, etc. Like HAL, Schema is also an emerging format. There are others that may be better suited to your needs.
Services
Service | Description |
---|---|
GetDatabaseItem | Usage: Comments: Returns: |
GetDatabaseItems | Usage: Comments: Returns: |
DeleteDatabaseItem | Usage: Comments: Returns: |
PostDatabaseItem | Usage: Comments: Returns: |
GetColumnNames | Usage: Comments:
Returns: |
GetColumnValues | Usage: Comments: Returns: |
...