make installmake snapshotmake db-start # wait for container is up and running
make db-restoremake db-promake pro-startmake specmake docsJust hit the make upgrade command to pull the latest images from Docker Hub and restart services. Specs and Docs will be also generated.
make upgrademake spec will generate a GET code sample for each endpoint using the open-api/code-samples/config/gen-code-samples.config.json config.
-
Create a Handlebars template file in
open-api/code-samples/templateseg.open-api/code-samples/templates/javascript.hbs -
Update
open-api/code-samples/config/gen-code-samples.config.jsonconfig eg."JavaScript": "open-api/code-samples/templates/javascript.hbs",
-
Now
make specwill generate aGETcode sample for each endpoint using the updated config and Handlebars template
make spec will update x-tagGroups in the Open API spec it generates using open-api/data/open-api-tag-groups.json
To run tests
npm run testor in watch mode
npm run test:watchThe Node version for this project is automatically managed by AVN and NVM, read more here.