mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 23:40:05 +00:00
add count to artist songs
This commit is contained in:
@@ -281,10 +281,7 @@
|
||||
"200": {
|
||||
"description": "List of artists",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
"$ref": "#/definitions/main.Artist"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -407,6 +404,52 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/songs/artist": {
|
||||
"get": {
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"songs"
|
||||
],
|
||||
"summary": "Returns all the Songs of a specific Artist",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Artist Name",
|
||||
"name": "artist",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/main.Song"
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/songs/favorites": {
|
||||
"get": {
|
||||
"description": "Retrieves favorite songs filtered by a query with pagination support.",
|
||||
@@ -534,6 +577,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"main.Artist": {
|
||||
"description": "Artist holds search results for a given artist",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"artist": {
|
||||
"type": "string",
|
||||
"example": "Miku"
|
||||
},
|
||||
"count": {
|
||||
"type": "integer",
|
||||
"example": 21
|
||||
}
|
||||
}
|
||||
},
|
||||
"main.Collection": {
|
||||
"description": "Collection holds a list of songs",
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user