summaryrefslogtreecommitdiff
path: root/src/web/docs/api/endpoints/posts/create.yaml
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-12-14 22:36:04 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-12-14 22:36:04 +0900
commit5b6641003139606d54e3b8646b156d4fcd05b9d5 (patch)
tree23458fc8df2dce3ba055540d6bb03fc9f49a7362 /src/web/docs/api/endpoints/posts/create.yaml
parent:pizza: (diff)
downloadsharkey-5b6641003139606d54e3b8646b156d4fcd05b9d5.tar.gz
sharkey-5b6641003139606d54e3b8646b156d4fcd05b9d5.tar.bz2
sharkey-5b6641003139606d54e3b8646b156d4fcd05b9d5.zip
:v:
Diffstat (limited to 'src/web/docs/api/endpoints/posts/create.yaml')
-rw-r--r--src/web/docs/api/endpoints/posts/create.yaml21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/web/docs/api/endpoints/posts/create.yaml b/src/web/docs/api/endpoints/posts/create.yaml
index b6613038a7..feedf4f0d2 100644
--- a/src/web/docs/api/endpoints/posts/create.yaml
+++ b/src/web/docs/api/endpoints/posts/create.yaml
@@ -7,7 +7,7 @@ desc:
params:
- name: "text"
type: "string"
- optional: false
+ optional: true
desc:
ja: "投稿の本文"
en: "Text of a post"
@@ -30,20 +30,19 @@ params:
ja: "引用する投稿"
en: "A post you want to quote"
- name: "poll"
- type: "object(poll)"
+ type: "object"
optional: true
desc:
ja: "投票"
en: "A poll"
-
-paramDefs:
- poll:
- - name: "choices"
- type: "string[]"
- optional: false
- desc:
- ja: "投票の選択肢"
- en: "Choices of a poll"
+ defName: "poll"
+ def:
+ - name: "choices"
+ type: "string[]"
+ optional: false
+ desc:
+ ja: "投票の選択肢"
+ en: "Choices of a poll"
res:
- name: "created_post"