mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 06:06:15 +01:00
Changed 200 responses with no body to 204
This commit is contained in:
parent
fca6899a17
commit
bf2b989856
1 changed files with 10 additions and 10 deletions
20
doc/api.yaml
20
doc/api.yaml
|
@ -46,7 +46,7 @@ paths:
|
||||||
requestBody:
|
requestBody:
|
||||||
$ref: "#/components/requestBodies/userDetails"
|
$ref: "#/components/requestBodies/userDetails"
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Update username action successful.
|
description: Update username action successful.
|
||||||
'409':
|
'409':
|
||||||
description: The chosen username is already taken by another user.
|
description: The chosen username is already taken by another user.
|
||||||
|
@ -128,7 +128,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: The new follower's user ID.
|
description: The new follower's user ID.
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Follow user action successful.
|
description: Follow user action successful.
|
||||||
'403':
|
'403':
|
||||||
description: The user has no permission perform this action.
|
description: The user has no permission perform this action.
|
||||||
|
@ -155,7 +155,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: The user ID of the follower to remove.
|
description: The user ID of the follower to remove.
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Unfollow user action successful.
|
description: Unfollow user action successful.
|
||||||
'404':
|
'404':
|
||||||
description: The user is not followed by follower_uid, or the user does not exist.
|
description: The user is not followed by follower_uid, or the user does not exist.
|
||||||
|
@ -182,7 +182,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: The user ID of the user to ban.
|
description: The user ID of the user to ban.
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Ban user action successful.
|
description: Ban user action successful.
|
||||||
'403':
|
'403':
|
||||||
description: The user has no permission to perform this action.
|
description: The user has no permission to perform this action.
|
||||||
|
@ -210,7 +210,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: The user ID of the user to unban.
|
description: The user ID of the user to unban.
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Unban user action successful.
|
description: Unban user action successful.
|
||||||
'403':
|
'403':
|
||||||
description: The user has no permission to perform this action.
|
description: The user has no permission to perform this action.
|
||||||
|
@ -279,7 +279,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: The ID of the photo to like.
|
description: The ID of the photo to like.
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Like photo action successful.
|
description: Like photo action successful.
|
||||||
'403':
|
'403':
|
||||||
description: The user has no permission to perform this action.
|
description: The user has no permission to perform this action.
|
||||||
|
@ -312,7 +312,7 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
description: The ID of the photo to remove a like from.
|
description: The ID of the photo to remove a like from.
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Unlike photo action successful.
|
description: Unlike photo action successful.
|
||||||
'404':
|
'404':
|
||||||
description: The user or photo does not exists, or the user is not liking the photo.
|
description: The user or photo does not exists, or the user is not liking the photo.
|
||||||
|
@ -428,7 +428,7 @@ paths:
|
||||||
description: The ID of the photo to delete.
|
description: The ID of the photo to delete.
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Delete photo action successful.
|
description: Delete photo action successful.
|
||||||
'401':
|
'401':
|
||||||
description: The user has no permission to delete that photo.
|
description: The user has no permission to delete that photo.
|
||||||
|
@ -505,7 +505,7 @@ paths:
|
||||||
comment:
|
comment:
|
||||||
$ref: "#/components/schemas/comment"
|
$ref: "#/components/schemas/comment"
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Comment photo action successful.
|
description: Comment photo action successful.
|
||||||
'404':
|
'404':
|
||||||
description: The user or the photo does not exists (or the author of the photo has banned the authorized user).
|
description: The user or the photo does not exists (or the author of the photo has banned the authorized user).
|
||||||
|
@ -535,7 +535,7 @@ paths:
|
||||||
$ref: "#/components/schemas/comment_id"
|
$ref: "#/components/schemas/comment_id"
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'204':
|
||||||
description: Delete comment action successful.
|
description: Delete comment action successful.
|
||||||
'401':
|
'401':
|
||||||
description: The user has no permission to delete that comment.
|
description: The user has no permission to delete that comment.
|
||||||
|
|
Loading…
Reference in a new issue