https://hub.docker.com/editions/community/docker-ce-desktop-mac/
https://flask.palletsprojects.com/en/1.1.x/quickstart/#quickstart
https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.19-macos10.15-x86_64.dmg
https://flask.palletsprojects.com/en/1.1.x/patterns/sqlite3/
http://www.pythondoc.com/Flask-RESTful/quickstart.html
All responses will have the form
{
"data": "Mixed type holding the content of the response",
"message": "Description of what happened"
}
Subsequent response definitions will only detail the expected value of the data field
Definition
GET /maps
Response
200 OK
on success
[
{
"mapId": "1001",
"a0": "x@x@x@x@x@x@x@x@x@x@x@1@1@1@@@@x",
"a1": "x@x@x@x@x@x@x@x@x@x@"
},
{
"mapId": "1002",
"a0": "x@x@x@x@x@x@x@x@x@x@x@1@1@1@@@@x",
"a1": "x@x@x@x@x@x@x@x@x@x@"
},
]
** Definition **
GET /map/<mapId>
** Response **
404 Not Found
if the key is not exist200 OK
on success
{
"mapId":"1001",
"a0":"x@x@x@x@x@x@x@x@x@x@x",
"a1":"x@x@x@x@x@x@x@x@x@x@x",
}
** Definition **
POST /solutions
** Arguments **
- "mapId":int a globally unique identifier for this device
- "solution":string the solution of the map
Response
201 Created
on success
{
"mapId":"1001",
"solution":"1:2|3:4"
}
** Definition **
GET /solution/<mapId>
** Response **
404 Not Found
if the solution is not exist200 OK
on success
{
"mapId":1,
"solution":"1:2|3:4"
}
Definition
DELETE /solutions/<mapId>
Response
404 Not Found
if the solution is not exist204 No Content
on success