Flask-RESTful
Jan 31, 2021
Lets adhere to REST fundamental to for creating a REST web api.
We uncomment the pdb.set_trace() and try to hit http//:127.0.0.1:5001/<string:name>
It will stop the execution at set trace line for us to debug the code.
GET: http//:127.0.0.1:5001/newer/Ankit Nigamk (wrong newer name)
POST: http//:127.0.0.1:5001/newer/Ankit Nigam
This call is missing the body part.
POST: http//:127.0.0.1:5001/newer/Ankit Nigam
GET: http//:127.0.0.1:5001/newer/
Link to gist.
That is enough to start with Flask RESTful try out and add PUT, DELETE methods.
Till i learn more….