096de438 by 周伟奇

modify upload doc urls

1 parent 99ba4731
......@@ -65,8 +65,8 @@ class DocView(GenericView):
return response.ok()
post.openapi_doc = '''
summary: pos上传文件信息
tags: [doc]
summary: POS系统上传文件信息
tags: [POS]
requestBody:
required: true
content:
......
......@@ -18,6 +18,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path(r'apis/v1/users/', include('apps.account.urls')),
path(r'apis/v1/doc/', include('apps.doc.urls')),
path(r'api/users/', include('apps.account.urls')),
path(r'api/create/v1/', include('apps.doc.urls')),
]
......
......@@ -8,17 +8,15 @@ info:
servers:
- url: 'http://127.0.0.1:8000'
description: Development server
- url: 'http://file-classification-beta.situdata.com/'
- url: 'http://staging-bmw-ocr.situdata.com'
description: sit
- url: 'http://127.0.0.1:8000'
description: uat
- url: 'http://127.0.0.1:8000'
description: prd
tags:
- name: user
description: 用户
- name: doc
description: 文件
- name: POS
description: POS系统交互
security:
- bearerAuth: []
......@@ -51,7 +49,7 @@ bearerAuth: # arbitrary name for the security scheme
responses = '''
ErrorResponse:
description: 调用异常, 具体情况请参考`HTTP`状态码和`meta -> status`字段
description: 调用异常, 具体情况请参考`HTTP`状态码和`code`字段
content:
application/json:
schema:
......@@ -68,7 +66,7 @@ parameters = ''
schemas = '''
ApiResponse:
description: 响应对象,meta字段用于表示响应的状态; data字段用于存放响应内容
description: 响应对象,code字段用于表示响应的状态; data字段用于存放响应内容
type: object
properties:
code:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!