summaryrefslogtreecommitdiff
path: root/src/web/docs/api/endpoints
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/docs/api/endpoints')
-rw-r--r--src/web/docs/api/endpoints/posts/create.yaml4
-rw-r--r--src/web/docs/api/endpoints/style.styl2
-rw-r--r--src/web/docs/api/endpoints/view.pug5
3 files changed, 6 insertions, 5 deletions
diff --git a/src/web/docs/api/endpoints/posts/create.yaml b/src/web/docs/api/endpoints/posts/create.yaml
index feedf4f0d2..498a99159c 100644
--- a/src/web/docs/api/endpoints/posts/create.yaml
+++ b/src/web/docs/api/endpoints/posts/create.yaml
@@ -15,8 +15,8 @@ params:
type: "id(DriveFile)[]"
optional: true
desc:
- ja: "添付するメディア"
- en: "Media you want to attach"
+ ja: "添付するメディア(1~4つ)"
+ en: "Media you want to attach (1~4)"
- name: "reply_id"
type: "id(Post)"
optional: true
diff --git a/src/web/docs/api/endpoints/style.styl b/src/web/docs/api/endpoints/style.styl
index 12c06fe3af..ab74e100b5 100644
--- a/src/web/docs/api/endpoints/style.styl
+++ b/src/web/docs/api/endpoints/style.styl
@@ -11,6 +11,8 @@ table
.name
font-weight bold
+ .name
.type
+ .optional
font-family Consolas, 'Courier New', Courier, Monaco, monospace
diff --git a/src/web/docs/api/endpoints/view.pug b/src/web/docs/api/endpoints/view.pug
index b7b2658a39..841ca8b3f9 100644
--- a/src/web/docs/api/endpoints/view.pug
+++ b/src/web/docs/api/endpoints/view.pug
@@ -17,10 +17,9 @@ mixin table(params)
td.name= param.name
td.type
if param.kind == 'id'
- | #{param.type} (ID of
- = ' '
+ | #{param.type} (
a(href=`/docs/api/entities/${param.entity}`)= param.entity
- | )
+ | ID)
else if param.kind == 'entity'
| #{param.type} (
a(href=`/docs/api/entities/${param.entity}`)= param.entity