Skip to content

Commit 27c6ece

Browse files
committed
定義書更新
1 parent fe4938a commit 27c6ece

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/cuculus-openapi.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ paths:
863863
/v0/accounts/update-profile-image:
864864
post:
865865
operationId: updateProfileImage
866-
summary: プロフィール画像変更
866+
summary: プロフィール画像変更API。
867867
parameters: []
868868
requestBody:
869869
required: true
@@ -876,13 +876,22 @@ paths:
876876
file:
877877
type: string
878878
format: binary
879+
description: |-
880+
アップロードする画像ファイル。
881+
- リミット: 1MB
882+
- 推奨サイズ: 400px x 400px
883+
- サポートされるファイルタイプ: JPEG, PNG, WEBP, GIF
884+
required:
885+
- file
879886
responses:
880887
'200':
881888
description: プロフィール画像の更新に成功
882889
content:
883890
application/json:
884891
schema:
885892
$ref: '#/components/schemas/UserWithFollows'
893+
'400':
894+
description: 無効なファイル
886895
'401':
887896
description: JWTが無効、または期限切れ
888897
tags:
@@ -892,7 +901,7 @@ paths:
892901
/v0/accounts/update-profile-background-image:
893902
post:
894903
operationId: updateProfileBackgroundImage
895-
summary: ヘッダー画像更新
904+
summary: ヘッダー画像更新(未実装)
896905
parameters: []
897906
requestBody:
898907
required: true
@@ -905,6 +914,8 @@ paths:
905914
file:
906915
type: string
907916
format: binary
917+
required:
918+
- file
908919
responses:
909920
'401':
910921
description: JWTが無効、または期限切れ
@@ -1241,6 +1252,6 @@ components:
12411252
description: 表示名
12421253
example: ククルス
12431254
bio:
1244-
type: object
1255+
type: string
12451256
description: bio
12461257
example: ククルスへようこそ。

0 commit comments

Comments
 (0)