@request.restful is just a very simple convenience decorator that allows 
you to write a controller action in a particular format that makes it easy 
to handle different request methods (i.e., get, post, put, delete). It 
would be fairly easy to write a similar controller action without using the 
decorator (you would just have to use some if/elif blocks to separately 
handle different request types based on request.env.request_method). So, in 
that sense, I suppose it "covers all the possibilities," but that's not 
saying much, as the code you write in the controller is what really makes 
up the API.

The more powerful features with regard to API generation are parse_as_rest 
and smart_query, which make it easier for you to generate a consistent REST 
API for access to database tables.

Anthony

On Friday, June 24, 2016 at 6:53:52 AM UTC-4, Marlysson Silva wrote:
>
> Good morning.
>
> Folks, the use of decorator @request.restful() already it's enough to 
> building the rest api?
>
> Already cover all the possibilities?
>

-- 
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