Skip to content

Commit f8f0b2c

Browse files
committed
定義書更新
1 parent c0bbada commit f8f0b2c

File tree

1 file changed

+57
-30
lines changed

1 file changed

+57
-30
lines changed

docs/cuculus-openapi.yaml

Lines changed: 57 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -84,30 +84,37 @@ paths:
8484
in: path
8585
schema:
8686
type: number
87-
- name: limit
87+
- name: max_id
8888
required: false
8989
in: query
90-
example: 20
91-
description: 取得件数
90+
example: '26439435541307392'
91+
description: このIDを上限として、より小さいIDの投稿を取得します。
9292
schema:
93-
minimum: 1
94-
maximum: 40
95-
default: 20
96-
type: number
93+
type: string
9794
- name: since_id
9895
required: false
9996
in: query
10097
example: '26439435541307392'
101-
description: 以降
98+
description: このIDを下限として、それよりも大きいIDの投稿を取得します。(min_idと併用不可)
10299
schema:
103100
type: string
104-
- name: until_id
101+
- name: min_id
105102
required: false
106103
in: query
107104
example: '26439435541307392'
108-
description: 以前
105+
description: このIDよりも新しい直後からの投稿を取得します。(since_idと併用不可)
109106
schema:
110107
type: string
108+
- name: limit
109+
required: false
110+
in: query
111+
example: 20
112+
description: 取得件数
113+
schema:
114+
minimum: 1
115+
maximum: 40
116+
default: 20
117+
type: number
111118
responses:
112119
'200':
113120
description: 投稿一覧
@@ -117,6 +124,8 @@ paths:
117124
type: array
118125
items:
119126
$ref: '#/components/schemas/UserPost'
127+
'400':
128+
description: min_idとsince_idは同時に指定できません
120129
'404':
121130
description: ユーザーが見つかりませんでした。
122131
tags:
@@ -673,30 +682,37 @@ paths:
673682
operationId: getHomeTimeline
674683
summary: ホームタイムラインの取得
675684
parameters:
676-
- name: limit
685+
- name: max_id
677686
required: false
678687
in: query
679-
example: 20
680-
description: 取得件数
688+
example: '26439435541307392'
689+
description: このIDを上限として、より小さいIDの投稿を取得します。
681690
schema:
682-
minimum: 1
683-
maximum: 40
684-
default: 20
685-
type: number
691+
type: string
686692
- name: since_id
687693
required: false
688694
in: query
689695
example: '26439435541307392'
690-
description: 以降
696+
description: このIDを下限として、それよりも大きいIDの投稿を取得します。(min_idと併用不可)
691697
schema:
692698
type: string
693-
- name: until_id
699+
- name: min_id
694700
required: false
695701
in: query
696702
example: '26439435541307392'
697-
description: 以前
703+
description: このIDよりも新しい直後からの投稿を取得します。(since_idと併用不可)
698704
schema:
699705
type: string
706+
- name: limit
707+
required: false
708+
in: query
709+
example: 20
710+
description: 取得件数
711+
schema:
712+
minimum: 1
713+
maximum: 40
714+
default: 20
715+
type: number
700716
responses:
701717
'200':
702718
description: ポスト一覧
@@ -706,6 +722,8 @@ paths:
706722
type: array
707723
items:
708724
$ref: '#/components/schemas/UserPost'
725+
'400':
726+
description: min_idとsince_idは同時に指定できません
709727
tags:
710728
- timelines
711729
security:
@@ -715,30 +733,37 @@ paths:
715733
operationId: getPublicTimeline
716734
summary: 全体タイムラインの取得(廃止予定)
717735
parameters:
718-
- name: limit
736+
- name: max_id
719737
required: false
720738
in: query
721-
example: 20
722-
description: 取得件数
739+
example: '26439435541307392'
740+
description: このIDを上限として、より小さいIDの投稿を取得します。
723741
schema:
724-
minimum: 1
725-
maximum: 40
726-
default: 20
727-
type: number
742+
type: string
728743
- name: since_id
729744
required: false
730745
in: query
731746
example: '26439435541307392'
732-
description: 以降
747+
description: このIDを下限として、それよりも大きいIDの投稿を取得します。(min_idと併用不可)
733748
schema:
734749
type: string
735-
- name: until_id
750+
- name: min_id
736751
required: false
737752
in: query
738753
example: '26439435541307392'
739-
description: 以前
754+
description: このIDよりも新しい直後からの投稿を取得します。(since_idと併用不可)
740755
schema:
741756
type: string
757+
- name: limit
758+
required: false
759+
in: query
760+
example: 20
761+
description: 取得件数
762+
schema:
763+
minimum: 1
764+
maximum: 40
765+
default: 20
766+
type: number
742767
responses:
743768
'200':
744769
description: ポスト一覧
@@ -748,6 +773,8 @@ paths:
748773
type: array
749774
items:
750775
$ref: '#/components/schemas/UserPost'
776+
'400':
777+
description: min_idとsince_idは同時に指定できません
751778
tags:
752779
- timelines
753780
security:

0 commit comments

Comments
 (0)