google-cloud-endpoints

Deploy Google Endpoint in a custom Domain

放肆的年华 提交于 2019-11-30 21:52:18
Is there any problems using Google Cloud Endpoints with custom domain? I was using it for some weeks then, after a deploy it stopped to work. I look here and I found this question that says it is not allowed yet. But it was working for me on http://www.customdomain.com/_ah/api/app-id/v1 ... If you're using App Engine's built-in support for custom domains as outlined here , it's not expected to work. You can follow this feature request to keep up-to-date on the feature's progress. Now,Google CloudEndpoints 2.0 support it Migrating to version 2.0: Update your dependency to use the new artifact.

Cloud Endpoints Collection Parameter

﹥>﹥吖頭↗ 提交于 2019-11-30 21:49:13
Im using Google App Engine Cloud Endpoints and Im trying to receive a collection parameter . Not sure if I can do this. I know I can return a List or any Collection. This: public List<Pair> initializationSetup(Pair pPair){} Works fine, but If I try to receive a list of pairs, the .api file is not created. public List<Pair> initializationSetup(List<Pair> pPairs){ Thanks Cloud Endpoints only deals with classes having the bean standard. So, I created a new class named ObjectListContainer: public class ObjectListContainer { public List<Object> getObjectsList() { return ObjectsList; } public void

GoogleJsonResponseException: 404 Not Found using google apps endpoint engine backend

落花浮王杯 提交于 2019-11-30 20:48:52
I followed the tutorial below. https://developers.google.com/eclipse/docs/running_and_debugging_2_0 which basically added a GAE backend to my existing app. I then try out the example below, run it on the local development server and I get the exception below which occurs after Note result = endpoint.insertNote(note).execute(); is called. com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found My code is below. package com.cloudnotes; import java.io.IOException; import java.util.Date; import android.os.AsyncTask; import android.content.Context; import com.cloudnotes

Deploy Google Endpoint in a custom Domain

岁酱吖の 提交于 2019-11-30 17:35:33
问题 Is there any problems using Google Cloud Endpoints with custom domain? I was using it for some weeks then, after a deploy it stopped to work. I look here and I found this question that says it is not allowed yet. But it was working for me on http://www.customdomain.com/_ah/api/app-id/v1... 回答1: If you're using App Engine's built-in support for custom domains as outlined here, it's not expected to work. You can follow this feature request to keep up-to-date on the feature's progress. 回答2: Now

Migrating to Cloud Endpoints Frameworks 2.0 for App Engine

瘦欲@ 提交于 2019-11-30 17:32:23
问题 I'm currently trying to migrate from Cloud Endpoints 1.0 to Cloud Endpoints Frameworks 2.0 . I've followed the steps outlined here: https://cloud.google.com/appengine/docs/java/endpoints/migrating?authuser=0 In my build.gradle I've replaced: compile 'com.google.appengine:appengine-endpoints:1.9.42' compile 'com.google.appengine:appengine-endpoints-deps:1.9.42' with: compile 'com.google.endpoints:endpoints-framework:2.0.0-beta.5' compile 'javax.inject:javax.inject:1' And in web.xml I've

Modify HTTP headers in Google App Engine Endpoints (Android)

人盡茶涼 提交于 2019-11-30 16:03:14
I would like to add custom headers to the HTTP package sent to an Endpoint. I've read that I can access the raw HTTP data in the Endpoint method (by adding a HttpServletRequest parameter). What I am looking for is a solution (or a hack) to access and modify the data being sent by the (Android) client. Http headers can be modified like this. I use this link as example. Since it's one of the Google's example. Read it and find EndpointsAsyncTask you can use GoogleClientRequestInitializer for this. inside public void initialize(AbstractGoogleClientRequest abstractGoogleClientRequest) throws

@Nullable @Named in GAE / Android Sample

六眼飞鱼酱① 提交于 2019-11-30 15:53:01
问题 I'm trying to work on the sample GAE / Android app. There is Place Entity. In generated PlaceEndpoint class there is a method: @ApiMethod(name = "listGame") public CollectionResponse<Place> listPlace( @Nullable @Named("cursor") String cursorString, @Nullable @Named("limit") Integer limit) { EntityManager mgr = null; Cursor cursor = null; List<Game> execute = null; try { mgr = getEntityManager(); Query query = mgr.createQuery("select from Place as Place"); if (cursorString != null &&

How to retrieve custom User object in GAE endpoints?

半世苍凉 提交于 2019-11-30 15:33:05
I've just created my own custom authentication on my google app engine Java app. And it wasn't that much of a trouble as is the next thing I'm trying to do. Authentication works fine but now I'm trying to add some additional fields to the default User object so that I wouldn't have to make so many calls to the server. So what I've done so far is created a custom class that implements Authenticator. Based on whether the user is authenticated or not the authenticate method returns the User object or null. User object is then accessible to my API endpoints. To extend my app functionality I've

Cloud Endpoints with Multiple Services Classes

人盡茶涼 提交于 2019-11-30 15:28:31
I am starting to use Google Cloud Endpoints and I am running in a problem when specifying multiple services classes. Any idea how to get this working? ApiConfigurationError: Attempting to implement service myservice, version v1, with multiple classes that aren't compatible. See docstring for api() for examples how to implement a multi-class API. This is how I am creating my endpoint server. AVAILABLE_SERVICES = [ FirstService, SecondService ] app = endpoints.api_server(AVAILABLE_SERVICES) and for every service class I am doing this: @endpoints.api(name='myservice', version='v1', description=

combining blob servlet with endpoint api

雨燕双飞 提交于 2019-11-30 15:27:00
问题 Here is my web.xml <?xml version="1.0" encoding="utf-8" standalone="no"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <servlet> <servlet-name>Upload</servlet-name> <servlet-class>Upload</servlet-class> </servlet> <servlet-mapping> <servlet-name>Upload<