-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(friends): document more friend endpoint error responses
Document more friend endpoint error responses
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
openapi/components/responses/friends/FriendBadRequestError.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
description: Bad request error response when sending a friend request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../schemas/Error.yaml | ||
examples: | ||
Users Already Friends: | ||
value: | ||
error: | ||
message: Users are already friends | ||
status_code: 400 | ||
Already Sent a Friend Request: | ||
value: | ||
error: | ||
message: This user has already been sent a friend request | ||
status_code: 400 |