Page Contents

Home > @loopback/rest-crud > CrudRestController

CrudRestController interface

This interface describes prototype members of the controller class returned by defineCrudRestController.

Signature:

export interface CrudRestController<T extends Entity, IdType, IdName extends keyof T, Relations extends object = {}> 

Properties

Property Modifiers Type Description

repository

readonly

EntityCrudRepository<T, IdType>

The backing repository used to access & modify model data.

Methods

Method Description

find(filter)

Implementation of the endpoint GET /.