Flask-RESTful

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….

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store