---
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`<!-- -->.

**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&lt;T, IdType&gt;


</td><td markdown="1">

The backing repository used to access &amp; 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>


