modify upload doc urls
Showing
3 changed files
with
9 additions
and
11 deletions
... | @@ -65,8 +65,8 @@ class DocView(GenericView): | ... | @@ -65,8 +65,8 @@ class DocView(GenericView): |
65 | return response.ok() | 65 | return response.ok() |
66 | 66 | ||
67 | post.openapi_doc = ''' | 67 | post.openapi_doc = ''' |
68 | summary: pos上传文件信息 | 68 | summary: POS系统上传文件信息 |
69 | tags: [doc] | 69 | tags: [POS] |
70 | requestBody: | 70 | requestBody: |
71 | required: true | 71 | required: true |
72 | content: | 72 | content: | ... | ... |
... | @@ -18,6 +18,6 @@ from django.urls import path, include | ... | @@ -18,6 +18,6 @@ from django.urls import path, include |
18 | 18 | ||
19 | urlpatterns = [ | 19 | urlpatterns = [ |
20 | path('admin/', admin.site.urls), | 20 | path('admin/', admin.site.urls), |
21 | path(r'apis/v1/users/', include('apps.account.urls')), | 21 | path(r'api/users/', include('apps.account.urls')), |
22 | path(r'apis/v1/doc/', include('apps.doc.urls')), | 22 | path(r'api/create/v1/', include('apps.doc.urls')), |
23 | ] | 23 | ] | ... | ... |
... | @@ -8,17 +8,15 @@ info: | ... | @@ -8,17 +8,15 @@ info: |
8 | servers: | 8 | servers: |
9 | - url: 'http://127.0.0.1:8000' | 9 | - url: 'http://127.0.0.1:8000' |
10 | description: Development server | 10 | description: Development server |
11 | - url: 'http://file-classification-beta.situdata.com/' | 11 | - url: 'http://staging-bmw-ocr.situdata.com' |
12 | description: sit | 12 | description: sit |
13 | - url: 'http://127.0.0.1:8000' | 13 | - url: 'http://127.0.0.1:8000' |
14 | description: uat | 14 | description: uat |
15 | - url: 'http://127.0.0.1:8000' | 15 | - url: 'http://127.0.0.1:8000' |
16 | description: prd | 16 | description: prd |
17 | tags: | 17 | tags: |
18 | - name: user | 18 | - name: POS |
19 | description: 用户 | 19 | description: POS系统交互 |
20 | - name: doc | ||
21 | description: 文件 | ||
22 | 20 | ||
23 | security: | 21 | security: |
24 | - bearerAuth: [] | 22 | - bearerAuth: [] |
... | @@ -51,7 +49,7 @@ bearerAuth: # arbitrary name for the security scheme | ... | @@ -51,7 +49,7 @@ bearerAuth: # arbitrary name for the security scheme |
51 | 49 | ||
52 | responses = ''' | 50 | responses = ''' |
53 | ErrorResponse: | 51 | ErrorResponse: |
54 | description: 调用异常, 具体情况请参考`HTTP`状态码和`meta -> status`字段 | 52 | description: 调用异常, 具体情况请参考`HTTP`状态码和`code`字段 |
55 | content: | 53 | content: |
56 | application/json: | 54 | application/json: |
57 | schema: | 55 | schema: |
... | @@ -68,7 +66,7 @@ parameters = '' | ... | @@ -68,7 +66,7 @@ parameters = '' |
68 | 66 | ||
69 | schemas = ''' | 67 | schemas = ''' |
70 | ApiResponse: | 68 | ApiResponse: |
71 | description: 响应对象,meta字段用于表示响应的状态; data字段用于存放响应内容 | 69 | description: 响应对象,code字段用于表示响应的状态; data字段用于存放响应内容 |
72 | type: object | 70 | type: object |
73 | properties: | 71 | properties: |
74 | code: | 72 | code: | ... | ... |
-
Please register or sign in to post a comment