Fixed some bugs with songs not found made the application crash. Now checking if song exists and if not, remove song from DB and find another one. Frontend is now decoupled from the backend.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
openapi: 3.0.3
|
||||
info:
|
||||
version: "2.3.0"
|
||||
version: "3.1"
|
||||
title: "Music Server"
|
||||
description: "Images should not be included in the database, removes songs where the path doesn't work."
|
||||
description: "Fixed some bugs with songs not found made the application crash. Now checking if song exists and if not, remove song from DB and find another one. Frontend is now decoupled from the backend."
|
||||
contact:
|
||||
email: "zarnor91@gmail.com"
|
||||
servers:
|
||||
@@ -34,21 +34,21 @@ paths:
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
description: "The speciefied file"
|
||||
description: "The specified file"
|
||||
content:
|
||||
audio/mpeg:
|
||||
schema:
|
||||
type: object
|
||||
format: binary
|
||||
"500":
|
||||
description: "Something wnet wrong on the server"
|
||||
/music/first:
|
||||
description: "Something went wrong on the server"
|
||||
/music/soundTest:
|
||||
get:
|
||||
tags:
|
||||
- "Music"
|
||||
summary: "Start a match"
|
||||
description: "Get a sound check song and starts a new song que"
|
||||
operationId: "getFisrt"
|
||||
summary: "Start a sound test"
|
||||
description: "Get a sound check song"
|
||||
operationId: "getSoundCheckSong"
|
||||
responses:
|
||||
"200":
|
||||
description: "A file"
|
||||
@@ -58,7 +58,7 @@ paths:
|
||||
type: object
|
||||
format: binary
|
||||
"500":
|
||||
description: "Something wnet wrong on the server"
|
||||
description: "Something went wrong on the server"
|
||||
/music/rand:
|
||||
get:
|
||||
tags:
|
||||
@@ -75,13 +75,13 @@ paths:
|
||||
type: object
|
||||
format: binary
|
||||
"500":
|
||||
description: "Something wnet wrong on the server"
|
||||
description: "Something went wrong on the server"
|
||||
/music/rand/low:
|
||||
get:
|
||||
tags:
|
||||
- "Music"
|
||||
summary: "Get random song"
|
||||
description: "Takes a random song from a random game but increases the chans for games that haven't been played"
|
||||
description: "Takes a random song from a random game but increases the chance for games that haven't been played"
|
||||
operationId: "getRandomLow"
|
||||
responses:
|
||||
"200":
|
||||
@@ -92,7 +92,7 @@ paths:
|
||||
type: object
|
||||
format: binary
|
||||
"500":
|
||||
description: "Something wnet wrong on the server"
|
||||
description: "Something went wrong on the server"
|
||||
/music/info:
|
||||
get:
|
||||
tags:
|
||||
@@ -108,7 +108,7 @@ paths:
|
||||
schema:
|
||||
$ref: '#/components/schemas/info'
|
||||
"500":
|
||||
description: "Something wnet wrong on the server"
|
||||
description: "Something went wrong on the server"
|
||||
/music/list:
|
||||
get:
|
||||
tags:
|
||||
@@ -143,7 +143,7 @@ paths:
|
||||
type: object
|
||||
format: binary
|
||||
"500":
|
||||
description: "Something wnet wrong on the server"
|
||||
description: "Something went wrong on the server"
|
||||
/music/previous:
|
||||
get:
|
||||
tags:
|
||||
@@ -160,7 +160,7 @@ paths:
|
||||
type: object
|
||||
format: binary
|
||||
"500":
|
||||
description: "Something wnet wrong on the server"
|
||||
description: "Something went wrong on the server"
|
||||
/music/all:
|
||||
get:
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user