Manifest
Config manifest documentation
#data/app.config.yaml
version: v1.3
type: Config
body:
logging: # 1
headers: true # 1.1
body: true # 1.2
constants: # 2
today: "20203-01-01" # 2.1
proxy: # 3
- name: local # 3.1
url: http://localhost:9080 # 3.2Description
logging- logging setup unitheaders- controls whether to enable/disable header loggingbody- controls whether to enable/disable request/response body logging
constants- constants setup unit<constant name>: <constant value>- an enumeration (key, value) of user-defined constants
proxy- constants setup unitname- name of proxy entryurl- url of proxy entry
Note
You can use constants in a route YAML:
Backward Compatibility
The file name config.[yaml|yml] is reserved. You can still configure the project, but it will not support the manifest declaration. For config.yml you can declare settings in that way:
Last updated