示例#1
0
文件: conftest.py 项目: isysd/bravado
def minimal_swagger_spec(getPetById_spec):
    spec_dict = {
        'paths': {
            '/pet/{petId}': {
                'get': getPetById_spec
            }
        }
    }
    spec = Spec(spec_dict)
    spec.api_url = 'http://localhost/swagger.json'
    return spec
示例#2
0
def minimal_swagger_spec(minimal_swagger_dict):
    spec = Spec(minimal_swagger_dict)
    spec.api_url = 'http://localhost/'
    return spec
示例#3
0
def build_swagger_spec(swagger_dict):
    spec = Spec(swagger_dict)
    spec.api_url = 'http://localhost/'
    return spec
示例#4
0
def build_swagger_spec(swagger_dict):
    spec = Spec(swagger_dict)
    spec.api_url = 'http://localhost/'
    return spec