What you are doing is different from what the guide shows.
If you just want to GET the entries:
curl http://127.0.0.1:8000/RT/default/api/entries.json
If you want to POST/add a new entry you may need to have authentication:
curl --user user:pass -d "f_entry=something"
http://127.0.0.1:8000/RT/default/api/entries.json
On Saturday, December 2, 2017 at 11:27:48 AM UTC-8, Enrique Acosta wrote:
>
> Hello from Cuba,
>
> I followed the guide at
> http://www.web2pyslices.com/slice/show/1533/restful-api-with-web2py but
> whe i try to make a post in the webservice curl show me a mistake:
>
> curl -d "f_entry=something"
> http://127.0.0.1:8000/RT/default/api/entries.json
>
> errorid
>
> The id is autoincrement but the value is an empty string.
>
> I will appreciate if anybody help me,
>
> Best regards, Enrique
>
--
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.