r/learnpython • u/bmw2621 • Sep 04 '19
Wrote my first API
I would love any feedback. The API simply returns homebrewing calculations. I know there still a lot to do. Brew Numbers API
425
Upvotes
r/learnpython • u/bmw2621 • Sep 04 '19
I would love any feedback. The API simply returns homebrewing calculations. I know there still a lot to do. Brew Numbers API
10
u/Sebass13 Sep 04 '19
I'd personally recommend using URL parameters over URL routing to pass in the parameters to the endpoints; it's what they are there for, and it is better supported by libraries. If you used URL parameters, here's what a request to your URL would look like with
requests:That is a lot more intuitive than what it would look like with URL routing.