PDF Generation Service

Generate PDF and store output pdfs to filestore and return their filestoreids. The information is also saved into DB so that using _search endpoint we can retrieve already generated pdfs.

Generate pdfs and return their filestoreids

post

/_create

Query parameters
tenantIdstringrequired

tenantId for pdf

keystringrequired

key to identify correct PDF configurarion

Body
ResponseInfoobject
moduleObjectWithNameobject
Responses
curl -L \
  --request POST \
  --url '/pdf-service/v1//_create?tenantId=text&key=text' \
  --header 'Content-Type: */*' \
  --data '{"ResponseInfo":{"apiId":"text","ver":"text","ts":1,"action":"text","did":"text","key":"text","msgId":"text","authToken":"text","correlationId":"text","userInfo":{"id":1,"userName":"text","name":"text","type":"text","mobileNumber":"text","emailId":"text","tenantId":"text","uuid":"text","roles":[{"id":1,"name":"text","code":"text"}]}},"moduleObjectWithName":{}}'
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "text",
    "correlationId": "text",
    "userInfo": {
      "id": 1,
      "userName": "text",
      "name": "text",
      "type": "text",
      "mobileNumber": "text",
      "emailId": "text",
      "tenantId": "text",
      "uuid": "text",
      "roles": [
        {
          "id": 1,
          "name": "text",
          "code": "text"
        }
      ]
    }
  },
  "message": "text",
  "jobid": "text",
  "createdtime": 1,
  "endtime": 1,
  "tenantid": "text",
  "totalcount": 1,
  "key": "text",
  "documentType": "text",
  "moduleName": "text",
  "filestoreIds": [
    "text"
  ]
}

Generates pdf without storing any information on filestore or in DB. The generated pdf would be returned as binary response

Generate pdf and return as binary response

post

/_createnosave

Query parameters
tenantIdstringrequired

tenantId for pdf

keystringrequired

key to identify correct PDF configurarion

Body
ResponseInfoobject
moduleObjectWithNameobject
Responses
curl -L \
  --request POST \
  --url '/pdf-service/v1//_createnosave?tenantId=text&key=text' \
  --header 'Content-Type: */*' \
  --data '{"ResponseInfo":{"apiId":"text","ver":"text","ts":1,"action":"text","did":"text","key":"text","msgId":"text","authToken":"text","correlationId":"text","userInfo":{"id":1,"userName":"text","name":"text","type":"text","mobileNumber":"text","emailId":"text","tenantId":"text","uuid":"text","roles":[{"id":1,"name":"text","code":"text"}]}},"moduleObjectWithName":{}}'

No body

Get details for already generated PDF

post

/_search

Query parameters
tenantidstring

tenantId for pdf

jobidstringrequired

search based on unique id of pdf job.

entityidstringrequired

search based on unique id of a document

isconsolidatedstring

Whether single object or multiobject pdf required

Body
apiIdstringrequired
verstringrequired
tsinteger · int64required
actionstringrequired
didstringrequired
keystringrequired
msgIdstringrequired
authTokenstringrequired
correlationIdstringrequired
userInfoobjectrequired
Responses
curl -L \
  --request POST \
  --url '/pdf-service/v1//_search?jobid=text&entityid=text' \
  --header 'Content-Type: */*' \
  --data '{"apiId":"text","ver":"text","ts":1,"action":"text","did":"text","key":"text","msgId":"text","authToken":"text","correlationId":"text","userInfo":{"id":1,"userName":"text","name":"text","type":"text","mobileNumber":"text","emailId":"text","tenantId":"text","uuid":"text","roles":[{"id":1,"name":"text","code":"text"}]}}'
{
  "ResponseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "text",
    "correlationId": "text",
    "userInfo": {
      "id": 1,
      "userName": "text",
      "name": "text",
      "type": "text",
      "mobileNumber": "text",
      "emailId": "text",
      "tenantId": "text",
      "uuid": "text",
      "roles": [
        {
          "id": 1,
          "name": "text",
          "code": "text"
        }
      ]
    }
  },
  "message": "text",
  "jobid": "text",
  "createdtime": 1,
  "endtime": 1,
  "tenantid": "text",
  "totalcount": 1,
  "key": "text",
  "documentType": "text",
  "moduleName": "text",
  "filestoreIds": [
    "text"
  ]
}

Last updated

Was this helpful?