From ce7bd0db9f3ff24a949edece6d0fe912d3b9b5e6 Mon Sep 17 00:00:00 2001 From: yangyan Date: Sun, 5 May 2019 16:01:35 +0800 Subject: update request url Issue-ID: MODELING-164 Change-Id: I3cb942e4269f6bd4407864eb181cd26d3ef88d71 Signed-off-by: yangyan --- genericparser/swagger/management/commands/export_swagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'genericparser/swagger/management') 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'] -- cgit 1.2.3-korg