コード例 #1
0
 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"
       }
     ]
   }
コード例 #2
0
 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"
       }
     ]
   }