mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 14:16:15 +01:00
Add start_index & limit to likes and comments
This commit is contained in:
parent
26612cb3eb
commit
1e551885b9
1 changed files with 29 additions and 0 deletions
29
doc/api.yaml
29
doc/api.yaml
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue