Add start_index & limit to likes and comments

This commit is contained in:
Marco Realacci 2022-11-22 16:06:31 +01:00
parent 26612cb3eb
commit 1e551885b9

View file

@ -324,6 +324,20 @@ paths:
$ref: "#/components/schemas/photo_id" $ref: "#/components/schemas/photo_id"
required: true required: true
description: The ID of the photo. description: The ID of the photo.
- name: limit
in: query
schema:
type: integer
default: 25
description: The number of elements to show.
required: false
- name: start_index
in: query
schema:
type: integer
default: 0
description: The starting offset.
required: false
responses: responses:
'200': '200':
description: Returns the user list description: Returns the user list
@ -589,6 +603,21 @@ paths:
summary: Gets photo comments summary: Gets photo comments
description: Gets the list of comments of a photo description: Gets the list of comments of a photo
operationId: getPhotoComments operationId: getPhotoComments
parameters:
- name: limit
in: query
schema:
type: integer
default: 25
description: The number of elements to show.
required: false
- name: start_index
in: query
schema:
type: integer
default: 0
description: The starting offset.
required: false
security: security:
- BearerAuth: [] - BearerAuth: []
responses: responses: