In this section of the manual: 
http://www.web2py.com/books/default/chapter/29/10/services#parse_as_rest--experimental-

There is a paragraph explaining how to use cURL to test a restful API as 
follows:

If you have the "curl" utility installed you can try:

$ curl -d "name=Tim" http://127.0.0.1:8000/myapp/default/api/friend.json
{"errors": {}, "id": 1}

-----------------------------------------------------------------------------------------------------------------------------------------------
That example (it's the first one) won't work because the code for POST 
above doesn't do any pattern matching. It should be:

$ curl -d "name=Tim" http://127.0.0.1:8000/myapp/default/api/person.json
{"errors": {}, "id": 1}

so it passes the table name directly. 


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to