google-cloud-endpoints

Error in Compilation of Maven Project

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:44:13
问题 I am trying to create an Maven Endpoint project and while creating i am getting the following statement in windows command prompt: Define value for property 'gcloud-version': ${gcloud.plugin.version}: : Is there a specific version which i am supposed to enter? When I tried giving default value, the project was created but later on when I tried compiling it, i got the following error in command prompt: C:\projects\syncDb>mvn clean install [INFO] Scanning for projects... [ERROR] [ERROR] Some

Google Cloud Endpoints Python Quickstart echo sample issue

旧时模样 提交于 2019-12-12 01:59:04
问题 In the python standard environment quickstart, the endpoints method test_api_key returns a 503 Service Unavailable. The error occurs in the API Explorer when run with dev_appser.py and when the API is deployed. The code for it is: import endpoints from protorpc import message_types from protorpc import messages from protorpc import remote class TestResponse(messages.Message): content = messages.StringField(1) @endpoints.api(name='practice', version='v1', description='My Practice API') class

How to use endpoints for Android with App Engine Search API

女生的网名这么多〃 提交于 2019-12-12 01:58:01
问题 I will need to store a lot (anywhere from 100k to 10 million) longitude/latitude (geo)points with some extra variables attached. When the user logs in to my Android application it will request all geopoints within a kilometer radius. I've read blogs, documentation and questions on stackoverflow and came to the conclusion that the best match would be using Google App Engine in combination with the App Engine Search API and make endpoints connected to my Android Application. I recently followed

Exposing appengine cloud endpoints api on custom domain url address

我们两清 提交于 2019-12-12 01:54:57
问题 I have set of apis written on google appengine using google cloud endpoints. I want to publish these api's for other developers to consume by releasing the documentation generated through api-explorer. For this I would want my apis to be exposed on url such as https://api.example.com/v1/ but all my api endpoints generated through appengine have a url signature as https://module-dot-project-name.appspot.com/_ah/api/v1/ . I have tried mapping my api.example.com to the module serving the api's

Generate Cloud Endpoints file in IntelliJ IDEA

爷,独闯天下 提交于 2019-12-12 01:46:29
问题 In Eclipse there's an easy way to generate Endpoints file from a Java class(right click on class -> google -> generate endpoints file), but I cannot find this feature in IntelliJ . How should I do this? Thanks 回答1: The plugin that supports Cloud Endpoints generation is currently available only in Android Studio, but not in IntelliJ IDEA. If you're using IntelliJ IDEA, you need to use the command line endpoints tool to generate the endpoints file. 来源: https://stackoverflow.com/questions

Cron job for Google Appengine Endpoints

南楼画角 提交于 2019-12-12 01:27:02
问题 I like to add cron job for Google Appengine Endpoints. But in the document for the Endpoints mentioned that we cant add cron job for the GAE Endpoint. From Document: You cannot call a Google Cloud Endpoint directly from a push task queue or a cron job. GAE Endpoint Source: https://cloud.google.com/appengine/docs/java/endpoints/ Is there a way to add cron job for the endpoint? Cron Source: https://cloud.google.com/appengine/docs/java/config/cron 回答1: You'll need to split the logic from your

How do you return a Partial response in app engine python endpoints?

浪子不回头ぞ 提交于 2019-12-12 01:05:57
问题 I am learning endpoints and saw that other Google APIs have this "fields" query attribute. Also it appears in the api explorer. I would like to get a partial response for my api also, but when using the fields selector from the api explorer it is simply ignored by the server. Do I need to implement something in the server side? Haven't found anything in the docs. Any help is welcome. 回答1: From what I gather, Google has enabled partial response for their APIs, but has not yet explained how to

Android Client - Google App engine authentication using Google Cloud Endpoints

非 Y 不嫁゛ 提交于 2019-12-11 23:52:09
问题 I have a web application that is written on Python / Google Appengine / WebApp2 framework. The web application has native (custom) authentication. The userid / password is managed by the application (and it does not use Google Accounts). The web application needs to be extended to Mobile clients as well. So I am developing a native Android Client application and trying to integrate with Google Appengine. For authentication from the Android Client to the Google app engine, I am trying to keep

Google Cloud Endpoints generated iOS Client not working

那年仲夏 提交于 2019-12-11 20:12:13
问题 I have a python webservice running locally using GAE Python SDK 1.8.3. After annotating the API and generating iOS client classes using Google Cloud Endpoints Service Generator I'm trying to call a remote procedure using it. If I test my api using API Explorer, everything works just fine. When I call using the iOS client, the call is received by the webservice, however the request cannot be decoded correctly. This is my first time using the Endpoints API so I don't know what is wrong. What

JSON parsing very slow in Google Cloud Endpoints

心不动则不痛 提交于 2019-12-11 20:09:38
问题 Google Cloud Endpoints suggests the use of GsonFactory or JacksonFactory to do the JSON parsing. I have found that parsing a few 1000 java objects from my endpoint (each with only a few fields of longs and strings and a GeoPt) takes very long, about 15 seconds on a Galaxy Note 2. As suggested by Google, I use: myBuilder = new MyDbEndpoint.Builder( AndroidHttp.newCompatibleTransport(), new GsonFactory(), credential); myEndpoint = myBuilder.build(); ... List<myDb> beings = myEndpoint