Page History
Adds a JSON Entity to a JSON arrayCalls the indicated HTTP web service routine.
Syntax
Code Block |
---|
Response = HTTP_Services('RunHTTPService', HTTPService, RemainingURL) |
Returns
Returns 1 if successful, 0 if not.N/A
Parameters
Parameter | Description | ||
---|---|---|---|
HTTPService | The HTTP (or web) service to call | Handle | Handle to JSON Entity. Required. |
RemainingURL | This is the remaining portion of the URL that has not yet been processed by previous services | NewEntityHandle | New JSON entity to be added to the JSON array. Required. |
Remarks
The RunHTTPService service is the official way to call specific web service APIs. The HTTPService argument should contain the same name found in the URL segment that corresponds with the API resource. For instance, for the /customers
URL, the HTTPService argument should contain the value of customers. This will call the HTTP_CUSTOMERS_SERVICES
BASIC+ routine.
The RemainingURL argument will contain the value of the remaining portion of the URL that follows the current URL segment. Examples of managing this are found in the HTTP_Entry_Point_Services routine ADD service adds the given entity (which must be a valid JSON Entity Handle) to the end of the array. This only works if Handle is a JSON array.