Page Contents

Home > @loopback/rest > RestBindings

RestBindings namespace

RestServer-specific bindings

Signature:

export declare namespace RestBindings 

Namespaces

Namespace Description

Http

Request-specific bindings

Operation

SequenceActions

Bindings for potential actions that could be used in a sequence

Variables

Variable Description

AJV_FACTORY

Binding key for AJV

API_SPEC

Binding key for setting and injecting an OpenAPI spec

BASE_PATH

Internal binding key for basePath

CONFIG

Binding key for setting and injecting RestComponentConfig

ERROR_WRITER_OPTIONS

Binding key for setting and injecting Reject action’s error handling options.

See https://github.com/loopbackio/strong-error-handler#options for the list of available options. Please note that the flag log is not used by @loopback/rest.

HANDLER

Internal binding key for http-handler

HOST

Binding key for setting and injecting the host name of RestServer

HTTPS_OPTIONS

Binding key for HTTPS options

INVOKE_MIDDLEWARE_SERVICE

Binding key for setting and injecting a invokeMiddleware function for middleware based sequence

OPERATION_SPEC_CURRENT

Binding key for setting and injecting an OpenAPI operation spec

PATH

Binding key for setting and injecting the socket path of the RestServer

PORT

Binding key for setting and injecting the port number of RestServer

PROTOCOL

Binding key for setting and injecting the protocol of RestServer

REQUEST_BODY_PARSER_JSON

Binding key for request json body parser

REQUEST_BODY_PARSER_OPTIONS

Binding key for request body parser options

REQUEST_BODY_PARSER_RAW

Binding key for request raw body parser

REQUEST_BODY_PARSER_STREAM

Binding key for request raw body parser

REQUEST_BODY_PARSER_TEXT

Binding key for request text body parser

REQUEST_BODY_PARSER_URLENCODED

Binding key for request urlencoded body parser

REQUEST_BODY_PARSER

Binding key for request body parser

ROUTER_OPTIONS

ROUTER

Internal binding key for rest router

ROUTES

Namespace for REST routes

SEQUENCE

Binding key for setting and injecting a Sequence

SERVER

Binding key for the server itself

URL

Binding key for setting and injecting the URL of RestServer