integration of tornado and swagger-ui
[releng.git] / utils / test / result_collection_api / tornado_swagger_ui / tornado_swagger / settings.py
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 import os.path
4
5 __author__ = 'serena'
6
7 SWAGGER_VERSION = '1.2'
8
9 URL_SWAGGER_API_DOCS = 'swagger-api-docs'
10 URL_SWAGGER_API_LIST = 'swagger-api-list'
11 URL_SWAGGER_API_SPEC = 'swagger-api-spec'
12
13 STATIC_PATH = os.path.join(os.path.dirname(os.path.normpath(__file__)), 'static')
14
15 default_settings = {
16     'base_url': '/',
17     'static_path': STATIC_PATH,
18     'swagger_prefix': '/swagger',
19     'api_version': 'v1.0',
20     'api_key': '',
21     'enabled_methods': ['get', 'post', 'put', 'patch', 'delete'],
22     'exclude_namespaces': [],
23 }
24
25 models = []