.. | ||
duckpond | ||
tests | ||
poetry.lock | ||
pyproject.toml | ||
README.md | ||
requirements.txt |
Duck Pond backend
Endpoints
GET /entries
Gets a list of all the duck ponds in the database.
POST /entries/<id>/new
Creates a new duck pond entry.
JSON body arguments:
name
- reqiuredlocation
- required, in the form{ "lat": -1.2345, "long": 33.56643 }
imageURL
Votes will be initialised as zero.
Return sample:
{
"id": "uuid"
}
PATCH /entries/<id>
Updates an entry with the ID id
.
JSON body arguments:
name
location
imageURL
votes
GET /entries/<id>
Gets the JSON of the pond.
{
"id": "uuid",
"name": "The Pondiest Pond",
"location": {
"lat": -1.2345,
"long": 33.56643
},
"imageURL": "https://example.com"
}