Lets adhere to REST fundamental to for creating a REST web api.

We uncomment the pdb.set_trace() and try to hit http//:<string:name>

It will stop the execution at set trace line for us to debug the code.

GET: http//: Nigamk (wrong newer name)

POST: http//: Nigam

This call is missing the body part.

POST: http//: Nigam

GET: http//:

Link to gist.

That is enough to start with Flask RESTful try out and add PUT, DELETE methods.

Till i learn more….