Merge Document Template Service
6.2K
A document template merge service providing an API to manage templates and merge them with given data.
Requirements
After installing and configuring those, download docker-compose.yml and run the following command:
docker-compose up -d
You can now access the api at http://localhost:8000/api/v1/ which includes a browsable api.
Upload templates using the following:
curl --form [email protected] --form name="Test Template" --form engine=docx-template http://localhost:8000/api/v1/template/
After uploading successfully, you can merge a template with the following call:
curl -H "Content-Type: application/json" --data '{"data": {"test": "Test Input"}}' http://localhost:8000/api/v1/template/test-template/merge/ > output.docx
Code released under the MIT license.
Content type
Image
Digest
Size
487 MB
Last updated
over 4 years ago
docker pull adfinissygroup/document-merge-service