diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-16 05:04:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-16 05:04:02 +0900 |
| commit | 446b6a4f6bb376abdd6ebee5546f568d8c5dbc83 (patch) | |
| tree | fb2e515aca023618f7c29cdcda0cff14d864bd62 /src/web/docs/api/endpoints | |
| parent | :v: (diff) | |
| download | sharkey-446b6a4f6bb376abdd6ebee5546f568d8c5dbc83.tar.gz sharkey-446b6a4f6bb376abdd6ebee5546f568d8c5dbc83.tar.bz2 sharkey-446b6a4f6bb376abdd6ebee5546f568d8c5dbc83.zip | |
:v:
Diffstat (limited to 'src/web/docs/api/endpoints')
| -rw-r--r-- | src/web/docs/api/endpoints/posts/timeline.yaml | 32 | ||||
| -rw-r--r-- | src/web/docs/api/endpoints/view.pug | 7 |
2 files changed, 36 insertions, 3 deletions
diff --git a/src/web/docs/api/endpoints/posts/timeline.yaml b/src/web/docs/api/endpoints/posts/timeline.yaml new file mode 100644 index 0000000000..e1d78c082e --- /dev/null +++ b/src/web/docs/api/endpoints/posts/timeline.yaml @@ -0,0 +1,32 @@ +endpoint: "posts/timeline" + +desc: + ja: "タイムラインを取得します。" + en: "Get your timeline." + +params: + - name: "limit" + type: "number" + optional: true + desc: + ja: "取得する最大の数" + - name: "since_id" + type: "id(Post)" + optional: true + desc: + ja: "指定すると、この投稿を基点としてより新しい投稿を取得します" + - name: "max_id" + type: "id(Post)" + optional: true + desc: + ja: "指定すると、この投稿を基点としてより古い投稿を取得します" + - name: "since_date" + type: "number" + optional: true + desc: + ja: "指定した時間を基点としてより新しい投稿を取得します。数値は、1970 年 1 月 1 日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。" + - name: "max_date" + type: "number" + optional: true + desc: + ja: "指定した時間を基点としてより古い投稿を取得します。数値は、1970 年 1 月 1 日 00:00:00 UTC から指定した日時までの経過時間をミリ秒単位で表します。" diff --git a/src/web/docs/api/endpoints/view.pug b/src/web/docs/api/endpoints/view.pug index d456022f6e..62a6f59edd 100644 --- a/src/web/docs/api/endpoints/view.pug +++ b/src/web/docs/api/endpoints/view.pug @@ -21,6 +21,7 @@ block main h3= paramDef.name +propTable(paramDef.params) - section - h2 Response - +propTable(res) + if res + section + h2 Response + +propTable(res) |