Welcome!

Java Authors: Elizabeth White, Roger Strukhoff, Pat Romanski, Raja Patel, Yeshim Deniz

Related Topics: Java, AJAX & REA

Java: Blog Feed Post

Got REST? Build an HTML5 Mobile App

Testing a REST service is cool but what if you wanted to build a mobile app using it?

There are literally thousands of different REST APIs available today, and new APIs are being created and exposed daily. There are API aggregator sites such as apigee.com and programmableweb.com that collect APIs from various sites. apigee.com makes available a very nice API console where a REST service can be tested.

Testing a REST service is cool but what if you wanted to build a mobile app using it? Tiggzi, the cloud-based mobile app builder comes with a REST API console and makes it super easy to connect to any REST API. Check it out:

1. Enter any REST service URL. In this example I use Cocoafish Location API. Now, this is the most awesome part. You can use any REST URL here. You can of course do get, post, delete and push.

2. Define REST request parameters:

3. Test the service, just like the apigee.con console:

4. Create service response by clicking Populate Response Structure button (in above screen shot:

Four steps and you are done! All it takes is a few minutes to connect to any REST service.

Last, you just map the service to jQuery Mobile UI:

Pretty cool?

Read the original blog entry...

More Stories By Max Katz

Max Katz is a Senior Systems Engineer at Exadel. He has been helping customers jump-start their RIA development as well as providing mentoring, consulting, and training. Max is a recognized subject matter expert in the JSF developer community. He has provided JSF/RichFaces training for the past four years, presented at many conferences, and written several published articles on JSF-related topics. Max also leads Exadel's RIA strategy and writes about RIA technologies in his blog, http://mkblog.exadel.com. He is an author of "Practical RichFaces" book (Apress). Max holds a BS in computer science from the University of California, Davis.