swagger で CSV get/put を自分はこう書いた話 にゃ (正しいとは言っていない)
schema の書き方がわからないから雑にやったった
api:
parameters:
- xxxx
get
summary: csv download
description: |
xxxx
response:
200:
description: |
OK
* col1 integer xxxxx
* col2 string xxxxx
* col3 integer xxxxx
Example)
100,Bob,200
200,Max,10
300,Tom,4400
400:
$ref: '#/common/error'
put
summary: csv upload
description: |
xxxx
parameters:
- name: body
in: body
required: true
description: |
OK
* col1 integer xxxxx
* col2 string xxxxx
* col3 integer xxxxx
Example)
100,Bob,200
200,Max,10
300,Tom,4400
schema:
text/csv:
schema:
type: string
responses:
200:
description: OK
400:
$ref: '#/common/CsvBadRequest'
Author And Source
この問題について(swagger で CSV get/put を自分はこう書いた話 にゃ (正しいとは言っていない)), 我々は、より多くの情報をここで見つけました https://qiita.com/YooWaan/items/f477c1cc6a371fb5e8a9著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .