All in all, your first RESTful API in Python is about piecing together clear endpoints, matching them with the right HTTP ...
If you're paying for software features you're not even using, consider scripting them.
The Pi Picos are tiny but capable, once you get used to their differences.