If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    dirkk0  8 years ago

     

     
    To PUT (=update) something, you need to call:
     
    curl -i -H "Accept: application/json" -X PUT --user user:pass -d "f_entry=something newest" http://127.0.0.1:8000/RT/default/api/entries/1.json
     
    with id=1 being an existing entry.

Commented on:

Example of RESTful API with web2py @request.resttful feature. The web2py user Dirk K posted this recipe in the mail list.

Hosting graciously provided by:
Python Anywhere