Page Contents

Home > @loopback/model-api-builder

model-api-builder package

A packge with types and helpers for packages contributing Model API builders.


Provides a contract for extensions that contribute builders for repositories and controllers. Users provide both the model class and an extension. The extension is then used to build their repository and controller based on the model class.


Interface Description
ModelApiBuilder Interface for extensions contributing custom API flavors.


Variable Description
asModelApiBuilder A binding template for model API extensions
MODEL_API_BUILDER_PLUGINS Extension Point name for Model API builders.

Type Aliases

Type Alias Description
ModelApiConfig Configuration settings for individual model files. This type describes content of public-models/{model-name}.config.json files.