mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 23:40:05 +00:00
add collection sugar
This commit is contained in:
@@ -105,8 +105,11 @@ paths:
|
||||
- description: Index
|
||||
in: query
|
||||
name: index
|
||||
required: true
|
||||
type: integer
|
||||
- description: Index
|
||||
in: query
|
||||
name: name
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -127,47 +130,6 @@ paths:
|
||||
summary: Get a collection of songs by index
|
||||
tags:
|
||||
- songs
|
||||
/collections:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Retrieves collections from the database with pagination based on
|
||||
the query parameter
|
||||
parameters:
|
||||
- description: Search query
|
||||
in: query
|
||||
name: query
|
||||
type: string
|
||||
- default: 10
|
||||
description: Limit the number of results
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
- default: 0
|
||||
description: Offset for pagination
|
||||
in: query
|
||||
name: offset
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: List of collections
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/main.Collection'
|
||||
type: array
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
type: string
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
type: string
|
||||
summary: Retrieves collections based on a query
|
||||
tags:
|
||||
- search
|
||||
/image/{filepath}:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user