def get(self): return { "apiVersion": registry['apiVersion'], "swaggerVersion": registry['swaggerVersion'], "apis": [ { "path": '/..' * (len(api_spec_endpoint.split('/')) + 1) + api_spec_endpoint, "description": "Auto generated API docs by flask-restful-swagger" } ] }