{"swagger":"2.0","info":{"description":"Given a template name and the placeholder text, this will generate a PDF file, store it in \n evidence management and will return the URI to retrieve the stored document","title":"Divorce Document Generation API"},"host":"localhost:8080","basePath":"/","tags":[{"name":"Document Generation Test","description":"Document Generation Test Controller"},{"name":"Document Generation","description":"Document Generator Controller"}],"paths":{"/test/generateDocument":{"post":{"tags":["Document Generation Test"],"summary":"Generate PDF document based on the supplied template name and placeholder texts and returns the PDF.","operationId":"generateDocumentUsingPOST","consumes":["application/json"],"produces":["application/pdf"],"parameters":[{"name":"allRequestParams","in":"query","description":"Form data containing the template name and key value pair of placeholder texts","required":true,"type":"object"}],"responses":{"200":{"description":"PDF was generated successfully. Returns the PDF document.","schema":{"type":"string","format":"byte"}}}}},"/version/1/generatePDF":{"post":{"tags":["Document Generation"],"summary":"Generate PDF document based on the supplied template name and placeholder texts and saves it in the evidence management.","operationId":"generatePDFUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"Authorization","in":"header","description":"Authorization","required":false,"type":"string"},{"in":"body","name":"templateData","description":"JSON object containing the templateName and the placeholder text map","required":true,"schema":{"$ref":"#/definitions/GenerateDocumentRequest"}}],"responses":{"200":{"description":"PDF was generated successfully and stored in the evidence management. Returns the url to the stored document.","schema":{"type":"string"}},"400":{"description":"Returned when input parameters are invalid or template not found","schema":{"type":"string"}},"500":{"description":"Returned when there is an unknown server error","schema":{"type":"string"}},"503":{"description":"Returned when the PDF Service or Evidence Management Client Api cannot be reached","schema":{"type":"string"}}}}}},"definitions":{"GenerateDocumentRequest":{"type":"object","required":["template","values"],"properties":{"template":{"type":"string","description":"Name of the template"},"values":{"type":"object","description":"Placeholder key / value pairs"}},"description":"Request body model for Document Generation Request"},"GeneratedDocumentInfo":{"type":"object","properties":{"createdOn":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"}}},"ResponseEntity":{"type":"object","properties":{"body":{"type":"object"},"statusCode":{"type":"string","enum":["100","101","102","103","200","201","202","203","204","205","206","207","208","226","300","301","302","303","304","305","307","308","400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","419","420","421","422","423","424","426","428","429","431","451","500","501","502","503","504","505","506","507","508","509","510","511"]},"statusCodeValue":{"type":"integer","format":"int32"}}}}}
