API Clients
Overview
Currently there are no official published API clients. You can use OpenAPI Generator to generate client libraries in your preferred programming language using our OpenAPI spec.
For example, to generate a TypeScript client:
curl https://app.generator.rest/api/openapi-json -o pdf-generator-openapi.json
npx @openapitools/openapi-generator-cli generate --skip-validate-spec -i pdf-generator-openapi.json -g typescript-fetch -o ./typescript-client --additional-properties=packageName=pdfgenerator
Below you can browser the documentation for the generated TypeScript and Python clients and how to use them to make API calls
TypeScript Client
Python Client
Customizing the Generated Client
For example, to generate a Typescript client that uses axios you can use the following command:
npx @openapitools/openapi-generator-cli generate --skip-validate-spec -i pdf-generator-openapi.json -g typescript-axios -o ./typescript-client --additional-properties=packageName=pdfgenerator
To generate a Python client that uses asyncio you can use the following command:
npx @openapitools/openapi-generator-cli generate --skip-validate-spec -i pdf-generator-openapi.json -g python -o ./python-client --additional-properties=library=asyncio