google-cloud-endpoints

cloud endpoint not respecting Jackson annotations

跟風遠走 提交于 2020-01-06 13:10:31
问题 I have a class Organization with few date fields as follows. public class Organization { private String _id; private String name; @JsonDeserialize(using=JsonDateDeserializer.class) @JsonSerialize(using=JsonDateSerializer.class) private Date createdTime; // getters and setters } To handle the date in simple way on client side I convert date to long and send it to client using these JsonSerializer as follows public class JsonDateSerializer extends JsonSerializer<Date>{ @Override public void

cloud endpoint not respecting Jackson annotations

白昼怎懂夜的黑 提交于 2020-01-06 13:09:53
问题 I have a class Organization with few date fields as follows. public class Organization { private String _id; private String name; @JsonDeserialize(using=JsonDateDeserializer.class) @JsonSerialize(using=JsonDateSerializer.class) private Date createdTime; // getters and setters } To handle the date in simple way on client side I convert date to long and send it to client using these JsonSerializer as follows public class JsonDateSerializer extends JsonSerializer<Date>{ @Override public void

Using retrofit with google cloud endpoints

☆樱花仙子☆ 提交于 2020-01-06 02:45:06
问题 I have built a backend REST Server using google cloud endpoints. How do I use retrofit to make calls to this REST API from my android client? 回答1: Use the Google cloud api URL as the base URL and proceed with the normal setup of retrofit. I don't think it is a big deal. Here is a link to a tutorial that could help u get started with retrofit. Tutoral Link 来源: https://stackoverflow.com/questions/29605509/using-retrofit-with-google-cloud-endpoints

Change in URL encoding of Cloud Endpoint parameters?

时光总嘲笑我的痴心妄想 提交于 2020-01-05 08:24:06
问题 I recently upgraded my App Engine SDK from 1.8.4 to 1.8.8. This seemed to have changed how string parameters are coming into my endpoint methods on the development server. Previously they were already URL decoded for me. Now it seems I must do my own URL decoding of each string parameter. Was this an intentional change or maybe I am doing something wrong? For instance, I have a simple method that essentially just echos a string. A call to it looks like: GET http://localhost:8088/_ah/api/sync

Unable to get Google endpoints working over multiple services

删除回忆录丶 提交于 2020-01-05 04:55:13
问题 Thanks to asamarin I've been able to figure out how to get different endpoints within the same google app engine (cf Using Google endpoints in different modules of the same app). But I can't make it work (at least with the dev server, I've not tried to pushed it to the cloud). I have two modules: module1 and module2, each of them running an independent api (using google endpoints so). In each moduleX/main.py I have this code: import endpoints from protorpc import remote # ... some code

Google Cloud Endpoint Authentication from my Android Client: Audience not Allowed and Oauth framework user didn't match oauth token user

孤街浪徒 提交于 2020-01-05 04:36:09
问题 I'm trying to access a deployed appengine backend api using OAuth2.0 support from my android client. Authentication is working fine from the api explorer using the authorised email address On the android side, I'm using the credentials/account picker method described here: https://developers.google.com/appengine/docs/python/endpoints/consume_android But I get a 403 status code saying the access is forbidden and the following in the appengine log when accessing from an android client: D 12:52

Are Cloud Endpoints with Go Google App Engine Standard possible?

馋奶兔 提交于 2020-01-05 04:25:09
问题 I have implemented a simple API in Go on Google App Engine Standard using just: func init() { http.HandleFunc("/api/v1/resource",submitResource) } Nothing special. However I want to port this code to using Cloud Endpoints instead in order to get the better monitoring and diagnostics. Is it even possible with STANDARD instances or must I move to FLEXIBLE? I can't find any documentation on this. Nor answers to this seemingly simple question. At the moment I half wish I had chosen Python because

Registration with Endpoints Server FAILED (App Engine connected Android Project)

江枫思渺然 提交于 2020-01-04 23:02:18
问题 I am new to Android programming and Google App Engine. I followed the below documentation to run a sample app which registers my device: https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae When I run the app(on a device), I see the following: 1)Registration with Google Cloud Messaging...SUCCEEDED! 2)Registration with Endpoints Server...FAILED! Unable to register your device with your cloud endpoints server. Either your cloud endpoints server is not deployed to app engine

Registration with Endpoints Server FAILED (App Engine connected Android Project)

吃可爱长大的小学妹 提交于 2020-01-04 23:01:06
问题 I am new to Android programming and Google App Engine. I followed the below documentation to run a sample app which registers my device: https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae When I run the app(on a device), I see the following: 1)Registration with Google Cloud Messaging...SUCCEEDED! 2)Registration with Endpoints Server...FAILED! Unable to register your device with your cloud endpoints server. Either your cloud endpoints server is not deployed to app engine

Eclipse doesn't generate google cloud endpoint client library

寵の児 提交于 2020-01-04 12:48:10
问题 I'm trying to create my first GAE Endpoint app, and instead of generating an endpoint from a class, I'd like to create my own personalised Endpoint... is this possible? I've written this class: @Api(name="my_endpoint", path="my_endpoint") public class MyFirstEndpoint { @ApiMethod (name="my_method", path="my_method", httpMehod=HttpMethod.GET) public Response myMethod(@Named("param1") String param1) { ... } } But when I try to generate the Endpoint Client Library in Eclipse, it says that there