001d5582057bcfe77334b2a97b2bad167987f825
[releng.git] / utils / test / result_collection_api / opnfv_testapi / tornado_swagger / settings.py
1 ##############################################################################
2 # Copyright (c) 2016 ZTE Corporation
3 # feng.xiaowei@zte.com.cn
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 import os.path
10
11 SWAGGER_VERSION = '1.2'
12 SWAGGER_API_DOCS = 'swagger-api-docs'
13 SWAGGER_API_LIST = 'swagger-api-list'
14 SWAGGER_API_SPEC = 'swagger-api-spec'
15 STATIC_PATH = os.path.join(os.path.dirname(os.path.normpath(__file__)),
16                            'static')
17
18 default_settings = {
19     'base_url': '/',
20     'static_path': STATIC_PATH,
21     'swagger_prefix': '/swagger',
22     'api_version': 'v1.0',
23     'api_key': '',
24     'enabled_methods': ['get', 'post', 'put', 'patch', 'delete'],
25     'exclude_namespaces': [],
26 }
27
28 models = []