So i am relatively new to flask only a couple weeks. To learn flask more I have set myself an objective on building my own api.
use case of the API:
authenticated users should be able to hit the endpoint
www.mydomain.com/api/ and do the below activities (only to their
tasks)- increase count (POST/PUT)
- decrease count (DELETE)
- reset count
non authenticated users should be able to go to www.mydomain.com/api/john and view John's metrics. I expect there to be many users each with their own metrics
Current state:
I can perform, post, get, put and delete operations (no authentication setup yet...)
My question:
Is there a way to restrict users based on their userid. by this I mean john only has access to perform requests against www.mydomain.com/api/john.