Added search endpoint
This commit is contained in:
parent
f94276513b
commit
e4ddcfe831
1 changed files with 32 additions and 0 deletions
|
@ -329,6 +329,38 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"/search/{query}": {
|
||||||
|
"get": {
|
||||||
|
"tags": ["Collection"],
|
||||||
|
"summary": "Searches for songs and directories",
|
||||||
|
"operationId": "getSearch",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "query",
|
||||||
|
"in": "path",
|
||||||
|
"description": "Search query used to filter results",
|
||||||
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Successful operation",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/CollectionFile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"components": {
|
"components": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue