[web2py] Re: API Response workaround

2018-06-23 Thread marco mansilla
Sorry, totally forgot about this, and yes... my problem was the lack of errors at all, so, using APIMaker, which is very convenient, changed insert and update methods with validate_and_insert, validate_and_update respectively. Now I can che the errors counter in the response. On Tuesday,

[web2py] Re: API Response workaround

2017-11-14 Thread Leonel Câmara
For me, it's good that the API returns 200 OK and a dict with the errors. Why do you think 404 would be a good status code? The URL exists, you just called it with data that did not validate. Still, if that's what you really want just check for errors in the validate_and_insert and "raise