This insert is unique to HTTP service modules and should not be used anywhere else. Therefore, other than enhancements and bug fixes to the SRP HTTP Framework, this insert should be left alone.
In addition to providing declarations for several utility service modules, the HTTP_Service_Setup
is responsible for setting up these important variables:
Variables | Description |
---|---|
APIURL | The base URL for the API entry point (e.g., api.mysite.com/v1). |
FullEndPointURL | The URL submitted by the client. |
HTTPMethod | The HTTP Method (Verb) submitted by the client (e.g., GET, POST, etc.) |
SelfURL | The URL path representing the current service. |
NextSegment | The URL segment immediately following the SelfURL (if any). This could contain the name of the next service or it could contain the Item ID for the current service (aka resource). |
CurrentServiceHandler | The name of the currently running BASIC+ stored procedure. |