Skip to content

Commit 084607c

Browse files
committed
定義書更新
1 parent a1c34ee commit 084607c

File tree

1 file changed

+91
-4
lines changed

1 file changed

+91
-4
lines changed

docs/cuculus-openapi.yaml

Lines changed: 91 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,82 @@ paths:
836836
- invitations
837837
security:
838838
- bearer: []
839+
/v0/accounts/update-profile:
840+
post:
841+
operationId: updateProfile
842+
summary: プロフィール更新
843+
parameters: []
844+
requestBody:
845+
required: true
846+
content:
847+
application/json:
848+
schema:
849+
$ref: '#/components/schemas/UpdateProfile'
850+
responses:
851+
'200':
852+
description: プロフィールの更新に成功
853+
content:
854+
application/json:
855+
schema:
856+
$ref: '#/components/schemas/UserWithFollows'
857+
'401':
858+
description: JWTが無効、または期限切れ
859+
tags:
860+
- accounts
861+
security:
862+
- bearer: []
863+
/v0/accounts/update-profile-image:
864+
post:
865+
operationId: updateProfileImage
866+
summary: プロフィール画像変更
867+
parameters: []
868+
requestBody:
869+
required: true
870+
description: Upload File
871+
content:
872+
multipart/form-data:
873+
schema:
874+
type: object
875+
properties:
876+
file:
877+
type: string
878+
format: binary
879+
responses:
880+
'200':
881+
description: プロフィール画像の更新に成功
882+
content:
883+
application/json:
884+
schema:
885+
$ref: '#/components/schemas/UserWithFollows'
886+
'401':
887+
description: JWTが無効、または期限切れ
888+
tags:
889+
- accounts
890+
security:
891+
- bearer: []
892+
/v0/accounts/update-profile-background-image:
893+
post:
894+
operationId: updateProfileBackgroundImage
895+
summary: ヘッダー画像更新
896+
parameters: []
897+
requestBody:
898+
required: true
899+
description: Upload File
900+
content:
901+
multipart/form-data:
902+
schema:
903+
type: object
904+
properties:
905+
file:
906+
type: string
907+
format: binary
908+
responses:
909+
'401':
910+
description: JWTが無効、または期限切れ
911+
tags:
912+
- accounts
913+
security:
914+
- bearer: []
839915
info:
840916
title: Cuculus API
841917
description: The Cuculus API description
@@ -878,7 +954,7 @@ components:
878954
created_at:
879955
format: date-time
880956
type: string
881-
description:
957+
bio:
882958
type: string
883959
profile_image_url:
884960
type: string
@@ -893,7 +969,7 @@ components:
893969
- name
894970
- username
895971
- created_at
896-
- description
972+
- bio
897973
- profile_image_url
898974
- protected
899975
- url
@@ -910,7 +986,7 @@ components:
910986
created_at:
911987
format: date-time
912988
type: string
913-
description:
989+
bio:
914990
type: string
915991
profile_image_url:
916992
type: string
@@ -933,7 +1009,7 @@ components:
9331009
- name
9341010
- username
9351011
- created_at
936-
- description
1012+
- bio
9371013
- profile_image_url
9381014
- protected
9391015
- url
@@ -1157,3 +1233,14 @@ components:
11571233
required:
11581234
- remaining_invitations
11591235
- invitations
1236+
UpdateProfile:
1237+
type: object
1238+
properties:
1239+
name:
1240+
type: string
1241+
description: 表示名
1242+
example: ククルス
1243+
bio:
1244+
type: object
1245+
description: bio
1246+
example: ククルスへようこそ。

0 commit comments

Comments
 (0)