@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
97 lines (48 loc) • 1.62 kB
Markdown
---
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) > [@loopback/rest-crud](./rest-crud.md) > [CrudRestController](./rest-crud.crudrestcontroller.md)
## CrudRestController interface
This interface describes prototype members of the controller class returned by `defineCrudRestController`<!-- -->.
**Signature:**
```typescript
export interface CrudRestController<T extends Entity, IdType, IdName extends keyof T, Relations extends object = {}>
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[repository](./rest-crud.crudrestcontroller.repository.md)
</td><td markdown="1">
`readonly`
</td><td markdown="1">
EntityCrudRepository<T, IdType>
</td><td markdown="1">
The backing repository used to access & modify model data.
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[find(filter)](./rest-crud.crudrestcontroller.find.md)
</td><td markdown="1">
Implementation of the endpoint `GET /`<!-- -->.
</td></tr>
</tbody></table>