How do I convert RESTful POST call to Ajax in Tornado?
/add/name/(\d)+
Then make post function with  def post (self,  id): pass. this argument id is value in url \d pattern. Hope it’s helpful.
I am learning Tornado and my app does just following: 

localhost:8000/add/name : adds name to the database 
localhost:8000/delete/name: deletes name from database

As of now I type in browser address bar /add/name and manually adding names. 

How do I make use of HTML forms for this request? Is this the right way: I create a field box with a id, using JS I get the value from that id, construct the RESTful POST url and on clicking submit, it goes to the constructed url. 
Now I want to turn above thing to AJAX call so that there is no page refresh. All the examples I found uses form where it sends the 'value' as request parameter not as RESTful.

Any help regarding this is appreciated. Thank you!
PS: I know I can use get_argument in Tornado and get the value. But I want this in REST, sending the value in URL.