Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This insert is unique to HTTP service modules and should not be used anywhere else. It is responsible for taking the current URL path and configuring it as the Service and Param1 argument for the next HTTP service module. Other 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:

VariablesDescription

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.