Sign inSign up

adfinissygroup/document-merge-service

By adfinissygroup

•Updated over 4 years ago

Merge Document Template Service

Image
0

6.2K

adfinissygroup/document-merge-service repository overview

⁠Document Merge Service

Build Status Dependabot Black License: MIT

A document template merge service providing an API to manage templates and merge them with given data.

⁠Installation

Requirements

  • docker
  • docker-compose

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.

⁠Getting started

⁠Uploading templates

Upload templates using the following:

curl --form [email protected] --form name="Test Template" --form engine=docx-template http://localhost:8000/api/v1/template/
⁠Merging a 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

⁠Further reading

  • Configuration⁠ - Further configuration and how to do a production setup
  • Usage⁠ - How to use the DMS and it's features
  • Contributing⁠ - Look here to see how to start with your first contribution. Contributions are welcome!

⁠License

Code released under the MIT license⁠.

Tag summary

Content type

Image

Digest

Size

487 MB

Last updated

over 4 years ago

docker pull adfinissygroup/document-merge-service