From 1e551885b94eb4333473bd74f435251bd0fb3713 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Tue, 22 Nov 2022 16:06:31 +0100 Subject: [PATCH] Add start_index & limit to likes and comments --- doc/api.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/api.yaml b/doc/api.yaml index a8a2d2b..3617ddd 100644 --- a/doc/api.yaml +++ b/doc/api.yaml @@ -324,6 +324,20 @@ paths: $ref: "#/components/schemas/photo_id" required: true 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: '200': description: Returns the user list @@ -589,6 +603,21 @@ paths: summary: Gets photo comments description: Gets the list of comments of a photo 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: - BearerAuth: [] responses: