Test out the API here: http://graemebalint.pythonanywhere.com
Endpoints:
- /getall
- /getrandom
- /searchbylocation
- /searchbyid
- /add
- /deletebyid
- /deleteall
Instructions:
- If you're unfamiliar with API endpoints and want to test out this program, open the test link in your browser and then paste in 1 of the endpoints. For example, http://graemebalint.pythonanywhere.com/getall
- I recommend testing /getall or /getrandom. The other endpoints require user input and the syntax may feel complicated.
Project goals:
- Mess around with Flask.
- After playing around with the requests library for a bit, I starting wondering how to build my own API. That's when this project started. The random database is taken from an introductory Python course I enrolled in.