Endpoint App Engine with revision

I would like to use Retrofit to handle network requests between the Android Client and the GAE endpoints. GAE endpoints provide Client / Server endpoint libraries for processing the entire network, as well as Oauth2 authentication, which is nice. Retrofit helps a lot with asynchronous calling, cancellation, concurrent calls ... that's why it's better than synthesizing an Android client. So can this Retrofit lib be configured with Appengine GAE endpoints or should it go through a regular GAE servlet?


Just to clarify my question and give answers to everyone who reads this:

I had for my application:

Client side: cloud endpoint library created by google app for eclipse

The reverse side of GAE: different APIs with methods encoded in JPA, for example:

@ApiMethod(name = "insertMyShareItem") public ShareItemData insertMyShareItemData(ShareItemData shareitemdata) { logger.log(Level.SEVERE, "insertMyShareItem"); } 

The benefits of the Google Cloud Endpoint are the libray endpoint, the simple use of Auth2, and the automatic use of secure connections over HTTPS

Now I want to abandon the Async task in order to implement Retrofit or Volley. I realized that I can no longer use the Google Cloud endpoint, and I need to convert the methods on the GAE Back end side to methods that extend the HttpServlet, so I can access them at the URL with the usual Retrofit setting.

This means that now I need to take care:

  • how I transfer my object to Retrofit and how I return them on the back.
  • How to convert a Retrofit HTTP request in an HTTPS call for a secure connection.
  • how I implement and manage Auth2 and tokens between the client endpoint and GAE to establish secure authentication.

This is what I understood from the search and below answers .Thks

+5
source share
1 answer

Use the Google Cloud API URL as the base URL and continue with the usual Retrofit setup. I do not think this is very important. Here is a link to a tutorial that can help you get started with Retrofit.

[a source]

0
source

All Articles