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
def minimal_swagger_spec(minimal_swagger_dict): spec = Spec(minimal_swagger_dict) spec.api_url = 'http://localhost/' return spec
def build_swagger_spec(swagger_dict): spec = Spec(swagger_dict) spec.api_url = 'http://localhost/' return spec