Added /addQue to add the last received song to the songQue. Changed /rand and /rand/low to not add song to the que. Changed /next to not call /rand when the end of the que is reached, instead the last song in the que will be resent.

This commit is contained in:
2020-12-06 17:20:11 +01:00
parent cda32daacf
commit 601e5cd14d
6 changed files with 140 additions and 195 deletions

View File

@@ -1,8 +1,8 @@
openapi: 3.0.3
info:
version: "2.0.3"
version: "2.1.0"
title: "Music Server"
description: "Another small change that should fix the caching problem."
description: "Added /addQue to add the last received song to the songQue. Changed /rand and /rand/low to not add song to the que. Changed /next to not call /rand when the end of the que is reached, instead the last song in the que will be resent."
contact:
email: "zarnor91@gmail.com"
servers:
@@ -192,6 +192,20 @@ paths:
description: "Bad Request"
"500":
description: "Something went wrong on the server"
/music/addQue:
get:
tags:
- "Music"
summary: "Adds last song to que"
description: "Adds the last featched song to the song que"
operationId: "addQue"
responses:
"200":
description: "OK"
"401":
description: "Bad Request"
"500":
description: "Something went wrong on the server"
/music/reset:
get:
tags: