Merge branch 'api_dev' into dev

This commit is contained in:
Marco Realacci 2022-11-22 17:45:34 +01:00
commit 9968f9e66f

View file

@ -462,6 +462,7 @@ paths:
username: "Maria" username: "Maria"
followers: 25 followers: 25
following: 32 following: 32
followed: true
photos: 50 photos: 50
'404': '404':
description: User not found (or the authorized user is banned). description: User not found (or the authorized user is banned).
@ -870,10 +871,14 @@ components:
type: integer type: integer
example: 69 example: 69
description: Number of following users. description: Number of following users.
liked_boolean: like_status:
type: boolean type: boolean
example: true example: true
description: Whether the user liked the photo. description: Whether the user liked the photo.
follow_status:
type: boolean
example: false
description: Whether the user follows the other user.
photos_n: photos_n:
type: integer type: integer
example: 90 example: 90
@ -890,6 +895,8 @@ components:
$ref: "#/components/schemas/following_n" $ref: "#/components/schemas/following_n"
photos: photos:
$ref: "#/components/schemas/photos_n" $ref: "#/components/schemas/photos_n"
followed:
$ref: "#/components/schemas/follow_status"
user_photo_stream: user_photo_stream:
type: array type: array
minItems: 0 minItems: 0
@ -909,7 +916,7 @@ components:
comments: comments:
$ref: "#/components/schemas/comments_n" $ref: "#/components/schemas/comments_n"
liked: liked:
$ref: "#/components/schemas/liked_boolean" $ref: "#/components/schemas/like_status"
photo_stream: photo_stream:
type: array type: array
minItems: 0 minItems: 0
@ -933,7 +940,7 @@ components:
comments: comments:
$ref: "#/components/schemas/comments_n" $ref: "#/components/schemas/comments_n"
liked: liked:
$ref: "#/components/schemas/liked_boolean" $ref: "#/components/schemas/like_status"
comments: comments:
type: array type: array
minItems: 0 minItems: 0