class spectree.config.Config(**kwargs)[source]
  • MODE – mode for route. normal includes undecorated routes and routes decorated by this instance. strict only includes routes decorated by this instance. greedy includes all the routes.
  • PATH – path for API document page
  • OPENAPI_VERSION – OpenAPI version
  • TITLE – service name
  • VERSION – service version
  • DOMAIN – service host domain

update config from key-value pairs

Parameters:kwargs – key(case insensitive)-value pairs for config

If the key is not in attributes, it will be ignored. Otherwise, the corresponding attribute will be updated. (Logging Level: INFO)