Foxx configuration

    The object maps names to configuration parameters:

    • The key is the name under which the parameter will be available on the service context’s configuration property.

    • The value is a parameter definition.

    The key should be a valid identifier following the case-insensitive format /^[_$a-z][-_$a-z0-9]*$/.

    The parameter definition can have the following properties:

    • description: string

    • default: any

      Default value of the configuration parameter.

    If the configuration has parameters that do not specify a default value, you need to configure the service before it becomes active. In the meantime a fallback service will be mounted that responds to all requests with a HTTP 500 status code indicating a server-side error.

    Examples