Commit Graph

1 Commits

Author SHA1 Message Date
momijizukamori a0ca65ee1b
API tooling (#3033)
* Updates to API generation and tooling

- Added build script and build instructions for API files
- Updated `.gitignore` to keep node_module folders out, wherever they occur
- Rewrite existing YAML files to use new component system
- Compile rewritten YAML files
- Add more validation checks to the route builders and dispatchers
- Add a user-facing documentation page with interactive view using RapiDoc
- Add a generic 404 handler for missing routes under `/api`, which returns JSON instead of HTML
- Clean up spec output route slightly to make it valid OpenAPI 3.0.0

* Auto-fill API Key in docs

Co-authored-by: Cocoa <momijizukamori@gmail.com>
2023-01-03 22:42:09 -08:00