feat: エラーのレスポンス定義を追加

This commit is contained in:
usbharu 2024-02-18 16:48:19 +09:00
parent 8480d473e6
commit c80bc24c21
1 changed files with 53 additions and 0 deletions

View File

@ -400,6 +400,12 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Relationship" $ref: "#/components/schemas/Relationship"
401:
$ref: "#/components/responses/unauthorized"
403:
$ref: "#/components/responses/forbidden"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/accounts/{id}/block: /api/v1/accounts/{id}/block:
post: post:
@ -421,6 +427,12 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Relationship" $ref: "#/components/schemas/Relationship"
401:
$ref: "#/components/responses/unauthorized"
403:
$ref: "#/components/responses/forbidden"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/accounts/{id}/unfollow: /api/v1/accounts/{id}/unfollow:
post: post:
@ -442,6 +454,12 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Relationship" $ref: "#/components/schemas/Relationship"
401:
$ref: "#/components/responses/unauthorized"
403:
$ref: "#/components/responses/forbidden"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/accounts/{id}/unblock: /api/v1/accounts/{id}/unblock:
post: post:
@ -463,6 +481,13 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Relationship" $ref: "#/components/schemas/Relationship"
401:
$ref: "#/components/responses/unauthorized"
403:
$ref: "#/components/responses/forbidden"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/accounts/{id}/remove_from_followers: /api/v1/accounts/{id}/remove_from_followers:
post: post:
tags: tags:
@ -483,6 +508,12 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Relationship" $ref: "#/components/schemas/Relationship"
401:
$ref: "#/components/responses/unauthorized"
403:
$ref: "#/components/responses/forbidden"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/accounts/{id}/mute: /api/v1/accounts/{id}/mute:
post: post:
@ -504,6 +535,12 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Relationship" $ref: "#/components/schemas/Relationship"
401:
$ref: "#/components/responses/unauthorized"
403:
$ref: "#/components/responses/forbidden"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/accounts/{id}/unmute: /api/v1/accounts/{id}/unmute:
post: post:
@ -525,6 +562,12 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Relationship" $ref: "#/components/schemas/Relationship"
401:
$ref: "#/components/responses/unauthorized"
403:
$ref: "#/components/responses/forbidden"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/mutes: /api/v1/mutes:
get: get:
@ -557,6 +600,12 @@ paths:
schema: schema:
items: items:
$ref: "#/components/schemas/Account" $ref: "#/components/schemas/Account"
401:
$ref: "#/components/responses/unauthorized"
403:
$ref: "#/components/responses/forbidden"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/accounts/{id}/statuses: /api/v1/accounts/{id}/statuses:
get: get:
@ -748,6 +797,10 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/MediaAttachment" $ref: "#/components/schemas/MediaAttachment"
401:
$ref: "#/components/responses/unauthorized"
422:
$ref: "#/components/responses/unprocessableEntity"
/api/v1/follow_requests: /api/v1/follow_requests:
get: get: