Implement artist GetByID

This commit is contained in:
zardzul
2026-03-14 20:00:36 +01:00
parent d5e608feeb
commit 6bff66b31b
6 changed files with 134 additions and 0 deletions
+38
View File
@@ -44,6 +44,44 @@ const docTemplate = `{
}
}
},
"/artists/:id": {
"get": {
"produces": [
"application/json"
],
"tags": [
"artist"
],
"summary": "List artist by ID",
"parameters": [
{
"type": "string",
"description": "Artist ID (UUID)",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/handlers.ErrorResponse"
}
}
}
}
},
"/users/create": {
"post": {
"consumes": [