Game list should now be sorted, a new endpoint with the game list in random order have been added.

This commit is contained in:
2021-12-03 23:28:23 +01:00
parent ecec5fae9b
commit 0a73134381
5 changed files with 50 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: "2.1.3"
version: "2.1.4"
title: "Music Server"
description: "Added a check to see if song exists before returning it, if not a new song will be picked up."
contact:
@@ -166,7 +166,7 @@ paths:
tags:
- "Music"
summary: "Gets all games"
description: "Gets a list of all games that is in the databse"
description: "Gets a list of all games that is in the database"
operationId: "getAll"
responses:
"200":
@@ -180,6 +180,25 @@ paths:
example: ["God of War", "Final Fantasy VII"]
"500":
description: "Something went wrong on the server"
/music/all/random:
get:
tags:
- "Music"
summary: "Gets all games in random order"
description: "Gets a list of all games that is in the database in random order"
operationId: "getAllRandom"
responses:
"200":
description: "A list"
content:
application/json:
schema:
type: array
items:
type: string
example: ["Final Fantasy VII", "God of War"]
"500":
description: "Something went wrong on the server"
/music/played:
put:
tags: