restlize
v0.0.1
Published
Restelize converts Sequelize Models into a Restful API server protected by JWT's
Downloads
3
Maintainers
Readme
Restelize
Project goals
- Allow declarative description of models.
- Build OpenAPI spec for easy consumption.
- Support claim based access control.
Routes
{
method: 'GET'
route: '/model/'
params: {
q: 'query object',
limit:
}
},{
method: 'GET',
route: '/model/:id',
params: {
}
}
Security
This project does not do user management for you, it assumes that user management can be done via a 3rd party identity provider as a service or you can host your own system creating a role system.
When defining a model you can declare a static property access
{
access: {
write: ['admin', 'editor'],
read: ['anon'],
}
}