Transform

Table 1. Transform API
HTTP verb URL Request parameters
GET /cmod-rest/v1/transform Query string: docType={Doc type character}

The transform API takes a query parameter docType and one of the Doc type characters from the table found in Getting transform information. It returns a list of transform names that have been configured for the system. One of these names can be provided to the Retrieve document API. If the docType query parameter is not provided, all transform names and descriptions are returned.

Sample request

GET /cmod-rest/v1/transform?docType=L HTTP/1.1
usi-date: 2023-11-13T18:32:22Z
Authorization: CMODSharedKey odvttstl01-68yXERhn79KNry/oV7IY:mT/R8UEqc/FWvqgP2A1uT7tUdaIg/5eJAxn5oFhDT10=
Host: localhost

Sample response

HTTP/1.1 200 OK
X-Powered-By: Servlet/4.0
X-Content-Type-Options: nosniff
Content-Type: application/json
Date: Mon, 13 Nov 2023 18:32:22 GMT
Correlation-Id: 86146606-a9f1-46ea-a315-1264db7b9998
Content-Language: en-US
Content-Length: 139
            
{
  "transforms" : [ {
    "transformDescr" : "ARSXLINE Line Data Transform for OnDemand",
    "transformName" : "OD_LINE2PDF"
  } ]
}