Tell me if I am wrong.

1)So inside the compressed zip folder you upload for phonegap app wrapping, 
you simply put the w2p file of your file inside the zipped folder.
2) we add this to the controller:

@request.restful()
def api():
    response.view = 'generic.json'
    def GET(tablename,id):
        if not tablename=='person': raise HTTP(400)
        return dict(person = db.person(id))
    def POST(tablename,**fields):
        if not tablename=='person': raise HTTP(400)
        return db.person.validate_and_insert(**fields)
    return locals()

so will this work now?
On Friday, March 18, 2016 at 9:29:29 PM UTC+5:30, Leonel Câmara wrote:
>
> As I said the book explains how to do it:
> http://web2py.com/books/default/chapter/29/10/services#Restful-Web-Services
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to