Create entity from data (stored in CreateContext)
Implement to use createHandler
Override to throw custom error when resource not found.
Delete entity (fetched in DeleteContext)
Implement to use deleteHandler
Find entity by id (stored in ReadContext)
Implement to use detailHandler
List entities, optionally filter (filters stored in ListContext)
Implement to use listHandler
Process data coming from the service.
This method processes any incoming data coming from user. Data processing is called for Create, Update and List (filters). Override the method for custom data transformation.
This method sets the defaults for data or filters coming from user. Method is called for Create, Update and List.
Update entity with new data (both in UpdateContext)
Implement to use updateHandler
Generated using TypeDoc
Reject access to any given handler based on CrudContext. This method is called before each handler is finished. To reject access, throw Error. Override the method for custom ACL or validation.