@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api DynamicDocs
@base https://dynamicdocs.p.rapidapi.com
@version 1.0
@auth ApiKey ADVICEment API Key in header | ApiKey RapidAPI.com API Key in header
@endpoints 1
@toc templates(1)

@endpoint POST /templates/{template-token}/compile
@desc Compile New Document PDF
@required {Content-Type: str=application/json # Should be set to "application/json"}
@optional {doc-url-expires-in: int # The doc-url-expires-in is a numerical parameter which takes integers and describes after how many seconds the provided URL is available to download the document., latex-compiler: str(pdflatex/lualatex) # The latex-compiler parameter can take the following values:  pdflatex lualatex, latex-runs : int # The latex-runs is a numerical parameter and can take values of 1, 2 and 3., main-file-name: str # The main-file-name is a string parameter which identifies the main file to compile., doc-file-name: str # The doc-file-name is a string parameter which determines the name of the file. Note that the extension of the file is not required.}
@returns(200) Document Status URL Created
@errors {401: Unauthorized}
@example_request {"client":{"firstName":"John","lastName":"Smith","company":"ABC Company Pty Ltd","location":"Cape Town, South Africa","address":"xx Long Street"},"consultant":{"firstName":"Kobus","lastName":"van der Merwe","company":"XYZ Company Pty Ltd","location":"Sandton, South Africa","address":"xx Rivonia Road"},"servicesDescription":"perform analysis on the company's clients and identify existing market segments","effectiveDate":"1 February 2021","amount":"ZAR 100 000"}

@end
