npm install
npm run devThe purpose of Elegant api framework is to provide a simple and easy way to build api and api documentation and also testing.
- use zod for schema validation
- use zod-openapi to generate api documentation automatically
- use awilix for dependency injection
- Koa
- awilix
- zod
- zod-openapi
curl -X POST http://localhost:6969/user -H "Content-Type: application/json" -d '{"name": "Aaron H"}'curl http://localhost:6969/usercurl http://localhost:6969/user/1Get openapi json and paste into any openapi editor to see the api documentation. (e.g. https://editor.swagger.io/)
curl http://localhost:6969/openapi