Crud
Crud module automatically generate create update get delete methods on given controller
Installation#
in config/modules/all.ts
Usage#
create a controller with given entity and inject handle manager that implements IBaseCrudManager
now define the entity
this will create the following end points
- GET
/test/- get all entities - GET
/test/:id- get one entity - POST
/test/- create entity - PATCH
/test/:id- update entity - DELETE
/test/:id- delete entity - PATCH
/test/:id/active- active entity