Page Contents
rest-crud package
REST API controller implementing default CRUD semantics.
Remarks
Allows LoopBack 4 applications to quickly expose models via REST API without having to implement custom controller or repository classes.
Classes
| Class | Description |
|---|---|
| [CrudRestApiBuilder](/doc/en/lb4/apidocs.rest-crud.crudrestapibuilder.html) | |
| [CrudRestComponent](/doc/en/lb4/apidocs.rest-crud.crudrestcomponent.html) |
Functions
| Function | Description |
|---|---|
| [defineCrudRestController(modelCtor, options)](/doc/en/lb4/apidocs.rest-crud.definecrudrestcontroller.html) | Create (define) a CRUD Controller class for the given model. |
Interfaces
| Interface | Description |
|---|---|
| [CrudRestController](/doc/en/lb4/apidocs.rest-crud.crudrestcontroller.html) | This interface describes prototype members of the controller class returned by `defineCrudRestController`. |
| [CrudRestControllerCtor](/doc/en/lb4/apidocs.rest-crud.crudrestcontrollerctor.html) | Constructor of the controller class returned by `defineCrudRestController`. |
| [CrudRestControllerOptions](/doc/en/lb4/apidocs.rest-crud.crudrestcontrolleroptions.html) | Options to configure different aspects of a CRUD REST Controller. |
| [ModelCrudRestApiConfig](/doc/en/lb4/apidocs.rest-crud.modelcrudrestapiconfig.html) |