-
Notifications
You must be signed in to change notification settings - Fork 4
API Documentation for Pacdots
Jeffrey Leung edited this page Sep 3, 2017
·
1 revision
Note: Before the game begins, all Pacdots will be initialized and uneaten.
Retrieves the following statistics:
- Total number of Pacdots
- Number of Pacdots which have been eaten
- Number of Pacdots which have not been eaten
- Number of Powerdots which have not been eaten
A Powerdot is classified as a type of Pacdot.
GET
/pacdots/count
HTTP Status Code | Meanings |
---|---|
200 OK |
Retrieved Pacdot counts succesfully |
500 Internal Server Error |
An error occurred which could not be resolved |
{
"total" : 30,
"eaten" : 23,
"uneaten" : 7,
"uneatenPowerdots" : 1
}
Retrieves the locations of all uneaten Pacdots and whether they are a Powerdot.
GET
/pacdots/uneaten
HTTP Status Code | Meanings |
---|---|
200 OK |
Retrieved all uneaten Pacdots succesfully |
500 Internal Server Error |
An error occurred which could not be resolved |
[
{
"location" : {
"latitude" : 999.999,
"longitude" : 888.888
},
"powerdot" : false
},
{
"location" : {
"latitude" : 123.456
"longitude" : 654.321
},
"powerdot" : true
}
]
Retrieves the locations of all Pacdots, whether they have been eaten, and whether they are a Powerdot.
GET
/pacdots
HTTP Status Code | Meanings |
---|---|
200 OK |
Retrieved all Pacdots succesfully |
500 Internal Server Error |
An error occurred which could not be resolved |
[
{
"location" : {
"latitude" : 999.999,
"longitude" : 888.888
},
"eaten" : true,
"powerdot" : false
},
{
"location" : {
"latitude" : 123.456,
"longitude" : 654.321
},
"eaten" : false,
"powerdot" : true
}
]