mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 14:16:15 +01:00
Fixed gitignore conflict
This commit is contained in:
commit
4c1bd1142d
1 changed files with 27 additions and 5 deletions
32
doc/api.yaml
32
doc/api.yaml
|
@ -258,8 +258,16 @@ paths:
|
||||||
security:
|
security:
|
||||||
- BearerAuth: []
|
- BearerAuth: []
|
||||||
responses:
|
responses:
|
||||||
'204':
|
'201':
|
||||||
description: Ban user action successful.
|
description: Ban user action successful.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/generic_response"
|
||||||
|
example:
|
||||||
|
status: "Success"
|
||||||
|
'204':
|
||||||
|
description: The user is already banned.
|
||||||
'403':
|
'403':
|
||||||
description: The user has no permission to perform this action.
|
description: The user has no permission to perform this action.
|
||||||
content:
|
content:
|
||||||
|
@ -391,8 +399,16 @@ paths:
|
||||||
security:
|
security:
|
||||||
- BearerAuth: []
|
- BearerAuth: []
|
||||||
responses:
|
responses:
|
||||||
'204':
|
'201':
|
||||||
description: Like photo action successful.
|
description: Like photo action successful.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/generic_response"
|
||||||
|
example:
|
||||||
|
status: "Success"
|
||||||
|
'204':
|
||||||
|
description: The user already likes the photo.
|
||||||
'403':
|
'403':
|
||||||
description: The user has no permission to perform this action.
|
description: The user has no permission to perform this action.
|
||||||
content:
|
content:
|
||||||
|
@ -768,8 +784,14 @@ paths:
|
||||||
example:
|
example:
|
||||||
comment: "Lovely!"
|
comment: "Lovely!"
|
||||||
responses:
|
responses:
|
||||||
'204':
|
'201':
|
||||||
description: Comment photo action successful. #todo maybe 201
|
description: Comment photo action successful.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/generic_response"
|
||||||
|
example:
|
||||||
|
status: "Created"
|
||||||
'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).
|
||||||
content:
|
content:
|
||||||
|
@ -784,7 +806,7 @@ paths:
|
||||||
tags: ["comments"]
|
tags: ["comments"]
|
||||||
summary: Deletes a comment
|
summary: Deletes a comment
|
||||||
description: Deletes a photo in the gallery of the authorized user.
|
description: Deletes a photo in the gallery of the authorized user.
|
||||||
operationId: deleteComment
|
operationId: uncommentPhoto
|
||||||
security:
|
security:
|
||||||
- BearerAuth: []
|
- BearerAuth: []
|
||||||
parameters:
|
parameters:
|
||||||
|
|
Loading…
Reference in a new issue