Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.1 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.1 KB

/api

OpenAPI/Swagger specs, JSON schema files, protocol definition files.

Use make swagger do generate /internal/types/**/*.go from these specs. You may use make watch-swagger while writing these schemas to automatically execute make swagger every time there are changes (especially useful if you have http://localhost:8081/ opened in your browser while mutating these specs).

The final /api/swagger.yml is auto-generated from the following specs:

  1. The skeleton spec at /api/config/main.yml,
  2. all path specs living within /api/paths/*.yml and
  3. any /api/definitions/*.yml referenced by in step 1 and 2.

Further reading:

Related examples regarding this project layout: