Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing REST Service (JSON) on Google AppEngine [closed]

I am playing around with implementing a REST service on the Google AppEngine. I would prefer using GAE Java and JSON for communication between the service and clients.

What is everyone's favorite libraries for doing this?

What type of security do you prefer to implement using REST? Basic authentication or something else?

Also, as a side note, what is everyone's favorite libraries to use in iPhone development to consume REST + JSON services? The standard frameworks provided in the iPhone SDK? Or other libraries that wrap these services?

Thanks

like image 373
Nico Huysamen Avatar asked Nov 23 '10 07:11

Nico Huysamen


2 Answers

If you're going to implement REST service then check out the many JAVA frameworks for REST ( e.g. RESTEasy, Jeresy, Restlet ...) They all have some support for GAE, whether it's an out of the box support or using some minor tweaks. In addition all of these framework have providers for generating JSON response.

Also be sure to check out the "will it play in app engine page" for any framework you consider using

Regarding security, well, unless you enforce all communication is done over https, basic authentication is pretty basic. It basically sends the user credentials in plain text for every request.

GAE offers built in user management for users with google account, so if all your users are also google users that would be the easiest and most secure way to handle authentication.

The alternatives are:

  1. Let other system authenticate the users, e.g. facebook, google, open-id
  2. Implement a secured login form (using https), and then authenticate the users using a cookie
like image 117
LiorH Avatar answered Sep 21 '22 05:09

LiorH


If your idea is to consume a REST webservice from iPhone, I would ask you to look in to this article . For security , the better thing is to go for SSL.

like image 29
RK- Avatar answered Sep 19 '22 05:09

RK-