Skip to content
Intrpt edited this page Apr 27, 2024 · 13 revisions

API Documentation

API Endpoints

Game Endpoints

Upload game

POST /games/
Parameters
name type data type description
Responses
http code content-type response header response body
201 text/plain;charset=UTF-8 content-location: /games/{uuid}
400 application/json {"code":"400","message":"Bad Request"}
405 text/html;charset=utf-8 {"code":"405","message":"Method not allowed"}
409 application/json {"code":"409","message":"Game is already existing"}
500 application/json {"code":"500","message":"Internal Server Error"}
504 application/json {"code":"504","message":"Kubernetes Control Server not reachable"}
Example cURL

tbd


Get all uploaded games

GET /games/
Parameters
name type data type description
Responses
http code content-type response header response body
200 application/json "games:"[{"uuid":"16ae9a94-bbdc-4310-bf9c-36ea98c11fc9","name":"example"}]
405 text/html;charset=utf-8 {"code":"405","message":"Method not allowed"}
409 application/json {"code":"409","message":"Game is already existing"}
500 application/json {"code":"500","message":"Internal Server Error"}
504 application/json {"code":"504","message":"Kubernetes Control Server not reachable"}
Example cURL

tbd


Get the status of a game

GET /games/{uuid}/
Parameters
name type data type description
uuid required string uuid of the game
Responses
http code content-type response header response body
200 application/json {"uuid":"16ae9a94-bbdc-4310-bf9c-36ea98c11fc9","name":"example","status":"installing","url":"https://example.com"}
405 text/html;charset=utf-8 {"code":"405","message":"Method not allowed"}
404 application/json {"code":"404","message":"Game not found"}
500 application/json {"code":"500","message":"Internal Server Error"}
504 application/json {"code":"504","message":"Kubernetes Control Server not reachable"}
Example cURL

tbd


Delete a game

DELETE /games/{uuid}/
Parameters
name type data type description
uuid required string uuid of the game
Responses
http code content-type response header response body
204 application/json None
405 text/html;charset=utf-8 {"code":"405","message":"Method not allowed"}
404 application/json {"code":"404","message":"Game not found"}
500 application/json {"code":"500","message":"Internal Server Error"}
504 application/json {"code":"504","message":"Kubernetes Control Server not reachable"}
Example cURL

tbd


Clone this wiki locally