@loopback/docs
Version:
Documentation for LoopBack 4
37 lines (25 loc) • 1.13 kB
Markdown
---
lang: en
title: 'API docs: rest-crud.crudrestapibuilder.build'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest-crud
permalink: /doc/en/lb4/apidocs.rest-crud.crudrestapibuilder.build.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest-crud](./rest-crud.md) > [CrudRestApiBuilder](./rest-crud.crudrestapibuilder.md) > [build](./rest-crud.crudrestapibuilder.build.md)
## CrudRestApiBuilder.build() method
<b>Signature:</b>
```typescript
build(application: ApplicationWithRepositories, modelClass: typeof Model & {
prototype: Model;
}, cfg: ModelApiConfig): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| application | <code>ApplicationWithRepositories</code> | |
| modelClass | <code>typeof Model & {</code><br/><code> prototype: Model;</code><br/><code> }</code> | |
| cfg | <code>ModelApiConfig</code> | |
<b>Returns:</b>
`Promise<void>`