Page Contents

Home > @loopback/rest > RestBindings

RestBindings namespace

RestServer-specific bindings

Signature:

export declare namespace RestBindings 

Namespaces

Namespace Description
Http Request-specific bindings
SequenceActions Bindings for potential actions that could be used in a sequence

Variables

Variable Description
API_SPEC Binding key for setting and injecting an OpenAPI spec
BASE_PATH Internal binding key for basePath
BIND_ELEMENT Binding key for setting and injecting a wrapper function for setting values on a given context
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/strongloop/strong-error-handler#options for the list of available options. Please note that the flag log is not used by @loopback/rest.
GET_FROM_CONTEXT Binding key for setting and injecting a wrapper function for retrieving values from a given context
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
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
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