Added /serve endpoint
This commit is contained in:
parent
e4ddcfe831
commit
56ded64da6
1 changed files with 26 additions and 4 deletions
|
@ -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": {
|
||||
|
|
Loading…
Add table
Reference in a new issue