How to Create the RESTful API for the Web Application

830 views
Skip to first unread message

Sanjeet Roy

unread,
May 28, 2012, 2:50:46 PM5/28/12
to web...@googlegroups.com
Can anyone tell me how to create the API or the RESTful API for the Application which are developed in web2py. I want to develop our own API for my application is it possible? If possible than help me how to develop.

G. Clifford Williams

unread,
May 28, 2012, 3:48:46 PM5/28/12
to web...@googlegroups.com
Have you taken a look at the Services and  REST documentation in the 4th edition of the web2py manual? Here's a link to the online version: http://web2py.com/books/default/chapter/29/10#Restful-Web-Services

In short it's very easy to create rest services with web2py (even without using the built in request.restful() decorator). If you already understand ReST you can get going with a basic controller and the 'generic' views. If ReST is new to you then you'll probably want to take a second to go through the docs first. 

I hope that helps. 

Sanjeet Roy

unread,
May 28, 2012, 10:17:46 PM5/28/12
to web...@googlegroups.com
Thanks William i will go through the documentation

Sanjeet Roy

unread,
May 29, 2012, 2:30:32 AM5/29/12
to web...@googlegroups.com
Hii William I tried the example which are given but i get the empty value in the json and the xml which are returned

Sanjeet Roy

unread,
May 29, 2012, 5:03:52 AM5/29/12
to web...@googlegroups.com
Hii actually i developed the one chrome extension by using manifest.json which is used to pop-up the html page where i want the value in drop-down when the user will be login and they can also post some Queries from the extension which will be stored in our database.
Reply all
Reply to author
Forward
0 new messages