Skip to content

Commit 90462ce

Browse files
committed
定義書更新
1 parent 4f665ac commit 90462ce

File tree

1 file changed

+42
-2
lines changed

1 file changed

+42
-2
lines changed

docs/cuculus-openapi.yaml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ paths:
4848
content:
4949
application/json:
5050
schema:
51-
$ref: '#/components/schemas/User'
51+
$ref: '#/components/schemas/UserWithFollows'
5252
'404':
5353
description: ユーザーが見つかりませんでした。
5454
tags:
@@ -69,7 +69,7 @@ paths:
6969
content:
7070
application/json:
7171
schema:
72-
$ref: '#/components/schemas/User'
72+
$ref: '#/components/schemas/UserWithFollows'
7373
'404':
7474
description: ユーザーが見つかりませんでした。
7575
tags:
@@ -898,6 +898,46 @@ components:
898898
- protected
899899
- url
900900
- verified
901+
UserWithFollows:
902+
type: object
903+
properties:
904+
id:
905+
type: number
906+
name:
907+
type: string
908+
username:
909+
type: string
910+
created_at:
911+
format: date-time
912+
type: string
913+
description:
914+
type: string
915+
profile_image_url:
916+
type: string
917+
protected:
918+
type: boolean
919+
url:
920+
type: string
921+
verified:
922+
type: boolean
923+
followers_count:
924+
type: number
925+
description: フォロワー数
926+
example: 100
927+
following_count:
928+
type: number
929+
description: フォロー数
930+
example: 100
931+
required:
932+
- id
933+
- name
934+
- username
935+
- created_at
936+
- description
937+
- profile_image_url
938+
- protected
939+
- url
940+
- verified
901941
Post:
902942
type: object
903943
properties:

0 commit comments

Comments
 (0)