UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

37 lines (24 loc) 1.3 kB
--- lang: en title: 'API docs: rest-crud.crudrestcontroller' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest-crud permalink: /doc/en/lb4/apidocs.rest-crud.crudrestcontroller.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest-crud](./rest-crud.md) &gt; [CrudRestController](./rest-crud.crudrestcontroller.md) ## CrudRestController interface This interface describes prototype members of the controller class returned by `defineCrudRestController`<!-- -->. <b>Signature:</b> ```typescript export interface CrudRestController<T extends Entity, IdType, IdName extends keyof T, Relations extends object = {}> ``` ## Properties | Property | Type | Description | | --- | --- | --- | | [repository](./rest-crud.crudrestcontroller.repository.md) | [EntityCrudRepository](./repository.entitycrudrepository.md)<!-- -->&lt;T, IdType&gt; | The backing repository used to access &amp; modify model data. | ## Methods | Method | Description | | --- | --- | | [create(data)](./rest-crud.crudrestcontroller.create.md) | Implementation of the endpoint <code>POST /</code>. |