bb0cc7b2 by 周伟奇

modify upload doc url

1 parent d5c6be4b
...@@ -12,7 +12,7 @@ schemes: ...@@ -12,7 +12,7 @@ schemes:
12 - https 12 - https
13 - http 13 - http
14 paths: 14 paths:
15 /api/create/v1/: 15 /api/create/v1:
16 post: 16 post:
17 tags: 17 tags:
18 - doc 18 - doc
......
...@@ -19,5 +19,5 @@ from django.urls import path, include ...@@ -19,5 +19,5 @@ from django.urls import path, include
19 urlpatterns = [ 19 urlpatterns = [
20 path('admin/', admin.site.urls), 20 path('admin/', admin.site.urls),
21 path(r'api/users/', include('apps.account.urls')), 21 path(r'api/users/', include('apps.account.urls')),
22 path(r'api/create/v1/', include('apps.doc.urls')), 22 path(r'api/create/v1', include('apps.doc.urls')),
23 ] 23 ]
......
...@@ -48,6 +48,8 @@ class Command(BaseCommand): ...@@ -48,6 +48,8 @@ class Command(BaseCommand):
48 view_class = view.view_class 48 view_class = view.view_class
49 url_path, path_parameters = pattern[0][0] 49 url_path, path_parameters = pattern[0][0]
50 url_path = unify_url_path_format(url_path) 50 url_path = unify_url_path_format(url_path)
51 if url_path != '/api/create/v1':
52 continue
51 url_path_paramters = getattr(view, 'parameters_doc', None) 53 url_path_paramters = getattr(view, 'parameters_doc', None)
52 if url_path_paramters: 54 if url_path_paramters:
53 url_path_paramters = yaml.load(url_path_paramters) 55 url_path_paramters = yaml.load(url_path_paramters)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!