2 Answers
+ 6
Unless what you mean is how to deal with an example API. Then perhaps my code sample could be helpful for you đ
https://code.sololearn.com/c57gr6Ay31s9/?ref=app
+ 1
Are you looking to build an API? If so, then what will be the purpose of the API?
I've built a couple REST API's using Flask. I found the tutorial below helpful:
https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
I find REST API's useful when there's a need to build a web interface and a mobile interface. You write all the app logic in the Python API and call it from the app/mobile app rather than coding the app logic twice in the mobile and web apps.