Example code for combined use of "hapi-swagger" and 'joi-sequelize".
More specifically, it is gathered code of example code each of dependent project. And it is able to run instantly.
This example project is built on [email protected]
with [email protected]
. plz notice that it is not [email protected]
.
v4 has breaking changes, and this example project doesn't consider about them.
When I write this example, I intended that if a programmer commands sequelize model:create --name foo --attribute ...
. Then, Automatically, a Resful API be produced at /api/foo
path. But it doesn's fully works Yet.
git clone https://github.com/rino0601/hapi-swager-joi-sequelize-example.git
cd hapi-swager-joi-sequelize-example
npm install
npm start
and then, open http://localhost:3000/documentation to see what happens.
auto Generate SIMPLE CRUD API for Sequelize model- provide way to add custom API.
- proper One-to-one relationship handling
- proper One-to-many relationship handling
- proper Many-to-many relationship handling
- provide options for...
- auto generate white|brack list.
- proper url prefix
- ...else?
- auth