Building a restful-API may seem a mystery but it soon becomes clearer as you do it. I shall give a step by step simple method of finding your way around. Lets dive right in since talking never gets anything done.
first I assume you have the python/flask environment all setup, from this point we shall go into the process.
As a courtesy you should always write tests for your code, it simplifies the whole process by acting as a guide line, and helps you save time.
besides that having tests that pass, ensures your code is properly thought out, implemented; and can be maintained much easier by yourself and/or developers.
Next you will have to write endpoints for your api, such that they pass the tests.
finally you refactor the tests and implement changes in the endpoints to pass those tests. We shall get into actual code in the next episode. Happy coding!