Example #1
0
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
Example #2
0
def minimal_swagger_spec(minimal_swagger_dict):
    spec = Spec(minimal_swagger_dict)
    spec.api_url = 'http://localhost/'
    return spec
Example #3
0
def build_swagger_spec(swagger_dict):
    spec = Spec(swagger_dict)
    spec.api_url = 'http://localhost/'
    return spec
Example #4
0
def build_swagger_spec(swagger_dict):
    spec = Spec(swagger_dict)
    spec.api_url = 'http://localhost/'
    return spec