Client applications submit a request to the LightWave Server™ process using a specially crafted HTTP URI, HTTP method, and HTTP request headers and body. The HTTP URI indicates the API being invoked and the NonStop system resource that the request should act upon. The HTTP method indicates the operation being performed on the resource. The HTTP headers and request body contains data and/or parameters necessary to complete the request. After processing the request, LightWave Server returns an HTTP response with headers and response body containing the results of the request.
Request Method Selection
The HTTP method used for each request determines the operation to perform on the resource. In general, the method correlates with the resource operation as follows:
|Change the state of the resource. This method is used when creating or ending a transaction.
|Delete the resource. This method is used when aborting a transaction or aborting a Pathway dialog.
Request URI Construction
The Request URI uses the following general format:
|The version of the API being invoked. Currently this value must be "v1" for all APIs.
|The name of the API being invoked, which must be dialog or transaction.
|The resource-parameters value varies depending on the API being invoked. These parameters are documentation in the Native API Reference.
Some examples of API access using Method and URI combinations is shown below:
|Create a new transaction with a 30 second autoabort timeout. A transaction ID is returned in the response.
|Commit the transaction with the transaction ID 018968f900002a72f33b2b78a99b2536
|Abort a dialog.