HTML Documentation
The HTML documentation can be found on GitHub Pages
Swagger UI based documentation
If you want to query the API directly using Swagger UI you can launch a TOSCAna instance and visit the following page:
http://<BASE_URL>/swagger-ui.html
where <BASE_URL> represents the address and port to the TOSCAna transformer instance (e.g. localhost:8084).
Building the HTML based API documentation
In case of API changes the HTML based documentation will be outdated. To update it you have to regenerate it. This can be done as follows:
We assume you installed bootprint and bootprint-openapi using the following two commands:
npm install -g bootprint
npm install -g bootprint-openapi
Yarn can also be used instead:
yarn global add bootprint
yarn global add bootprint-openapi
- Run the
SwaggerAPIDownloadITeither through your IDE or by runningmvn install -P all - Navigate to the
server/targetdirectory - Create a folder called
swagger-out - Run the command
bootprint openapi swagger.json swagger-out - Copy the contents of the
swagger-outfolder into thegh-pagesbranch, and push the changes to GitHub