Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
096de438
authored
2020-06-12 14:19:45 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
modify upload doc urls
1 parent
99ba4731
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
src/apps/doc/views.py
src/apps/urls.py
src/common/api_doc.py
src/apps/doc/views.py
View file @
096de43
...
...
@@ -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:
...
...
src/apps/urls.py
View file @
096de43
...
...
@@ -18,6 +18,6 @@ from django.urls import path, include
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
r'api
s/v1
/users/'
,
include
(
'apps.account.urls'
)),
path
(
r'api
s/v1/doc
/'
,
include
(
'apps.doc.urls'
)),
path
(
r'api/users/'
,
include
(
'apps.account.urls'
)),
path
(
r'api
/create/v1
/'
,
include
(
'apps.doc.urls'
)),
]
...
...
src/common/api_doc.py
View file @
096de43
...
...
@@ -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:
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment