mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 06:06:15 +01:00
Add comments number to photo structures
This commit is contained in:
parent
5b2f6ed9de
commit
028ff36a67
1 changed files with 15 additions and 13 deletions
28
doc/api.yaml
28
doc/api.yaml
|
@ -462,13 +462,7 @@ paths:
|
||||||
username: "Maria"
|
username: "Maria"
|
||||||
followers: 25
|
followers: 25
|
||||||
following: 32
|
following: 32
|
||||||
photos:
|
photos: 50
|
||||||
- photo_id: 2341
|
|
||||||
upload_time: "2020-11-20T12:00:00Z"
|
|
||||||
likes: 2
|
|
||||||
- photo_id: 2342
|
|
||||||
upload_time: "2022-10-23T12:01:00Z"
|
|
||||||
likes: 5
|
|
||||||
'404':
|
'404':
|
||||||
description: User not found (or the authorized user is banned).
|
description: User not found (or the authorized user is banned).
|
||||||
content:
|
content:
|
||||||
|
@ -793,12 +787,12 @@ paths:
|
||||||
$ref: "#/components/schemas/photo_stream"
|
$ref: "#/components/schemas/photo_stream"
|
||||||
example:
|
example:
|
||||||
- user_id: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
|
- user_id: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
|
||||||
- username: "Federicus"
|
username: "Federicus"
|
||||||
- photo_id: 1520
|
photo_id: 157
|
||||||
- upload_time: "2020-11-20T12:00:00Z"
|
upload_time: "2020-11-20T12:00:00Z"
|
||||||
- likes: 93
|
likes: 93
|
||||||
|
comments: 13
|
||||||
|
liked: true
|
||||||
|
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
|
@ -864,6 +858,10 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
example: 90
|
example: 90
|
||||||
description: Number of likes.
|
description: Number of likes.
|
||||||
|
comments_n:
|
||||||
|
type: integer
|
||||||
|
example: 7
|
||||||
|
description: Number of comments on the photo.
|
||||||
followers_n:
|
followers_n:
|
||||||
type: integer
|
type: integer
|
||||||
example: 420
|
example: 420
|
||||||
|
@ -908,6 +906,8 @@ components:
|
||||||
$ref: "#/components/schemas/upload_time"
|
$ref: "#/components/schemas/upload_time"
|
||||||
likes:
|
likes:
|
||||||
$ref: "#/components/schemas/likes"
|
$ref: "#/components/schemas/likes"
|
||||||
|
comments:
|
||||||
|
$ref: "#/components/schemas/comments_n"
|
||||||
liked:
|
liked:
|
||||||
$ref: "#/components/schemas/liked_boolean"
|
$ref: "#/components/schemas/liked_boolean"
|
||||||
photo_stream:
|
photo_stream:
|
||||||
|
@ -930,6 +930,8 @@ components:
|
||||||
$ref: "#/components/schemas/upload_time"
|
$ref: "#/components/schemas/upload_time"
|
||||||
likes:
|
likes:
|
||||||
$ref: "#/components/schemas/likes"
|
$ref: "#/components/schemas/likes"
|
||||||
|
comments:
|
||||||
|
$ref: "#/components/schemas/comments_n"
|
||||||
liked:
|
liked:
|
||||||
$ref: "#/components/schemas/liked_boolean"
|
$ref: "#/components/schemas/liked_boolean"
|
||||||
comments:
|
comments:
|
||||||
|
|
Loading…
Reference in a new issue