Added /serve endpoint

This commit is contained in:
Antoine Gersant 2019-04-07 16:50:58 -07:00
parent e4ddcfe831
commit 56ded64da6

View file

@ -11,10 +11,6 @@
"name": "Collection",
"description": "Browsing the music collection"
},
{
"name": "File Serving",
"description": "Accessing raw files"
},
{
"name": "Last.fm",
"description": "Integrating with Last.fm"
@ -361,6 +357,32 @@
}
}
}
},
"/serve/{file}": {
"get": {
"tags": ["Collection"],
"summary": "Access a media file in the collection",
"operationId": "getServe",
"parameters": [
{
"name": "file",
"in": "path",
"description": "Path to the desired file",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful operation",
"content": {
"image/*": { "schema": { "format": "binary" } },
"audio/*": { "schema": { "format": "binary" } }
}
}
}
}
}
},
"components": {