diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-14 22:50:41 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-14 22:50:41 +0900 |
| commit | a357d5c6a51b1d3b36e2735068a2603ff8e1675a (patch) | |
| tree | 58110b48b34c7618081f4dde290d5c969bcf272a /src/web/docs/api/endpoints | |
| parent | :v: (diff) | |
| download | sharkey-a357d5c6a51b1d3b36e2735068a2603ff8e1675a.tar.gz sharkey-a357d5c6a51b1d3b36e2735068a2603ff8e1675a.tar.bz2 sharkey-a357d5c6a51b1d3b36e2735068a2603ff8e1675a.zip | |
:v:
Diffstat (limited to 'src/web/docs/api/endpoints')
| -rw-r--r-- | src/web/docs/api/endpoints/posts/create.yaml | 4 | ||||
| -rw-r--r-- | src/web/docs/api/endpoints/style.styl | 2 | ||||
| -rw-r--r-- | src/web/docs/api/endpoints/view.pug | 5 |
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 |