Added search endpoint

This commit is contained in:
Antoine Gersant 2019-04-07 16:45:02 -07:00
parent f94276513b
commit e4ddcfe831

View file

@ -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": {