Skip to content

Commit 3c826f6

Browse files
committed
定義書更新
1 parent 7260c60 commit 3c826f6

File tree

1 file changed

+65
-40
lines changed

1 file changed

+65
-40
lines changed

docs/cuculus-openapi.yaml

Lines changed: 65 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ paths:
2323
content:
2424
application/json:
2525
schema:
26-
$ref: '#/components/schemas/UserProfile'
26+
$ref: '#/components/schemas/User'
2727
'401':
2828
description: JWTが無効、または期限切れ
2929
'404':
@@ -48,7 +48,7 @@ paths:
4848
content:
4949
application/json:
5050
schema:
51-
$ref: '#/components/schemas/UserProfile'
51+
$ref: '#/components/schemas/User'
5252
'404':
5353
description: ユーザーが見つかりませんでした。
5454
tags:
@@ -69,7 +69,7 @@ paths:
6969
content:
7070
application/json:
7171
schema:
72-
$ref: '#/components/schemas/UserProfile'
72+
$ref: '#/components/schemas/User'
7373
'404':
7474
description: ユーザーが見つかりませんでした。
7575
tags:
@@ -118,7 +118,7 @@ paths:
118118
schema:
119119
type: array
120120
items:
121-
$ref: '#/components/schemas/UserProfile'
121+
$ref: '#/components/schemas/User'
122122
'404':
123123
description: ユーザーが見つかりませんでした。
124124
tags:
@@ -144,7 +144,7 @@ paths:
144144
schema:
145145
type: array
146146
items:
147-
$ref: '#/components/schemas/UserProfile'
147+
$ref: '#/components/schemas/User'
148148
'404':
149149
description: ユーザーが見つかりませんでした。
150150
tags:
@@ -652,17 +652,25 @@ paths:
652652
- name: limit
653653
required: false
654654
in: query
655-
description: デフォルト:20
655+
example: 20
656+
description: 取得件数
656657
schema:
658+
minimum: 1
659+
maximum: 40
660+
default: 20
657661
type: number
658662
- name: since_id
659663
required: false
660664
in: query
665+
example: '26439435541307392'
666+
description: 以降
661667
schema:
662668
type: string
663669
- name: until_id
664670
required: false
665671
in: query
672+
example: '26439435541307392'
673+
description: 以前
666674
schema:
667675
type: string
668676
responses:
@@ -678,6 +686,49 @@ paths:
678686
- timelines
679687
security:
680688
- bearer: []
689+
/v0/timelines/public:
690+
get:
691+
operationId: getPublicTimeline
692+
summary: 全体タイムラインの取得(廃止予定)
693+
parameters:
694+
- name: limit
695+
required: false
696+
in: query
697+
example: 20
698+
description: 取得件数
699+
schema:
700+
minimum: 1
701+
maximum: 40
702+
default: 20
703+
type: number
704+
- name: since_id
705+
required: false
706+
in: query
707+
example: '26439435541307392'
708+
description: 以降
709+
schema:
710+
type: string
711+
- name: until_id
712+
required: false
713+
in: query
714+
example: '26439435541307392'
715+
description: 以前
716+
schema:
717+
type: string
718+
responses:
719+
'200':
720+
description: ポスト一覧
721+
content:
722+
application/json:
723+
schema:
724+
type: array
725+
items:
726+
$ref: '#/components/schemas/UserPost'
727+
tags:
728+
- timelines
729+
security:
730+
- {}
731+
- bearer: []
681732
/v0/invitations/verify-code:
682733
post:
683734
operationId: postInvitationVerifyCode
@@ -764,38 +815,6 @@ components:
764815
required:
765816
- invitation_only
766817
- maintenance
767-
UserProfile:
768-
type: object
769-
properties:
770-
id:
771-
type: number
772-
name:
773-
type: string
774-
username:
775-
type: string
776-
created_at:
777-
format: date-time
778-
type: string
779-
description:
780-
type: string
781-
profile_image_url:
782-
type: string
783-
protected:
784-
type: boolean
785-
url:
786-
type: string
787-
verified:
788-
type: boolean
789-
required:
790-
- id
791-
- name
792-
- username
793-
- created_at
794-
- description
795-
- profile_image_url
796-
- protected
797-
- url
798-
- verified
799818
User:
800819
type: object
801820
properties:
@@ -833,6 +852,8 @@ components:
833852
properties:
834853
id:
835854
type: string
855+
description: 投稿ID
856+
example: '26439435541307392'
836857
original_post_id:
837858
type: string
838859
description: リポスト|引用元ID|オリジナルには含まれません。
@@ -856,6 +877,8 @@ components:
856877
properties:
857878
id:
858879
type: string
880+
description: 投稿ID
881+
example: '26439435541307392'
859882
original_post_id:
860883
type: string
861884
description: リポスト|引用元ID|オリジナルには含まれません。
@@ -872,6 +895,7 @@ components:
872895
type: string
873896
original_post:
874897
description: リポスト元
898+
example: '26439435541307392'
875899
allOf:
876900
- $ref: '#/components/schemas/Post'
877901
reposted:
@@ -987,10 +1011,11 @@ components:
9871011
original_post_id:
9881012
type: string
9891013
description: 引用元ID
1014+
example: '26439435541307392'
9901015
text:
9911016
type: string
992-
required:
993-
- text
1017+
description: 本文
1018+
example: Hello, World!
9941019
InvitationCodeRequest:
9951020
type: object
9961021
properties:

0 commit comments

Comments
 (0)