vendredi 4 décembre 2015

Patch/Put/Update API call in Eber.js

I am using flask restless to run the api endpoints and requests like:

$.post('http://localhost:5000/api/expense', item);

$.get('http://localhost:5000/api/person')

are working fine. Now I want to make a patch or put API call so tried:

$.put('http://localhost:5000/api/expense/id', item)

Also tried:

$.patch('http://localhost:5000/api/expense/id', item)

But it is not working. Error is $.put is not a function.

Can you please specify the format for making this call ?




Aucun commentaire:

Enregistrer un commentaire