{"openapi":"3.1.0","info":{"title":"Document Assembly API","description":"API to generate documents from given templates and metadata, and convert documents to PDF","version":"v0.0.1"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"tags":[{"name":"Document Conversion Service","description":"Endpoint for Document Conversion."},{"name":"Template Rendition Service","description":"Endpoint for Template Rendition."}],"paths":{"/api/template-renditions":{"post":{"tags":["Template Rendition Service"],"summary":"Renders a templates using provided values and uploads it to Document Store. secureDocStoreEnabled attribute is disabled by default.","operationId":"createTemplateRendition","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"ServiceAuthorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateRenditionDto"}}},"required":true},"responses":{"200":{"description":"Success","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CreateTemplateRenditionDto"}}}},"400":{"description":"Invalid input","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CreateTemplateRenditionDto"}}}},"403":{"description":"Access Denied","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CreateTemplateRenditionDto"}}}}}}},"/api/convert/{documentId}":{"post":{"tags":["Document Conversion Service"],"summary":"Convert Document to PDF","description":"A POST request to convert document type to PDF and return the converted document. secureDocStoreEnabled attribute is disabled by default.","operationId":"convert","parameters":[{"name":"authorization","in":"header","description":"Authorization (Idam Bearer token)","required":true,"schema":{"type":"string"}},{"name":"serviceauthorization","in":"header","description":"Service Authorization (S2S Bearer token)","required":true,"schema":{"type":"string"}},{"name":"documentId","in":"path","description":"Document Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully redacted","content":{"*/*":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorised","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"type":"object"}}}},"500":{"description":"Server Error","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/":{"get":{"tags":["welcome-resource"],"operationId":"welcome","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}}},"components":{"schemas":{"CreateTemplateRenditionDto":{"type":"object","properties":{"jwt":{"type":"string"},"serviceAuth":{"type":"string"},"templateId":{"type":"string"},"formPayload":{"$ref":"#/components/schemas/JsonNode"},"outputType":{"type":"string","enum":["PDF","DOC","DOCX"]},"renditionOutputLocation":{"type":"string"},"outputFilename":{"type":"string"},"secureDocStoreEnabled":{"type":"boolean"},"caseTypeId":{"type":"string"},"jurisdictionId":{"type":"string"},"hashToken":{"type":"string"},"errors":{"type":"array","items":{"type":"string"}}},"required":["outputType","templateId"]},"JsonNode":{}}}}
