Confident treats your API specification (a .json file) as the source of truth for express routes, API documentation, and request/response validation. It's your swagger wagon.
Features
- Works with existing Express app.
- Everything is opt-in. Incrementally integrate or eject.
- Validate your API schema.
- Validate requests.
- Validate responses.
- Serves up API documentation.
- Serves up /api.json.
- Suggests schemas to increase coverage.
- Supports basePath.
Get started
npm install confident --save
api.json
index.js
const confident = const express = const app = { res} app app
Generated documentation
http://localhost:3000/docs