aboutsummaryrefslogtreecommitdiffstats
path: root/genericparser/swagger/management
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-05-05 16:01:35 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-05-05 16:01:40 +0800
commitce7bd0db9f3ff24a949edece6d0fe912d3b9b5e6 (patch)
tree418204353b2cac3350fe4ef42fad753142584139 /genericparser/swagger/management
parent9ddeb8996a45a8dd189488608a57a90d04a4943a (diff)
update request url
Issue-ID: MODELING-164 Change-Id: I3cb942e4269f6bd4407864eb181cd26d3ef88d71 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'genericparser/swagger/management')
-rw-r--r--genericparser/swagger/management/commands/export_swagger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/genericparser/swagger/management/commands/export_swagger.py b/genericparser/swagger/management/commands/export_swagger.py
index e732246..ed7ea58 100644
--- a/genericparser/swagger/management/commands/export_swagger.py
+++ b/genericparser/swagger/management/commands/export_swagger.py
@@ -30,7 +30,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
self.client = Client()
- response = self.client.get("/api/genericparser/v1/swagger.json")
+ response = self.client.get("/api/parser/v1/swagger.json")
with open(options['name'], 'w') as swagger_file:
swagger_file.write(json.dumps(response.data))
print "swagger api is written to %s" % options['name']