google-cloud-endpoints

Error Generating OpenAPI doc using the endpoint-framework-tools (unclear documentation)

北城余情 提交于 2019-12-24 20:22:10
问题 (Intro) I am undergoing some tutorials on google cloud endpoint using the google documentation. I have managed to run my first API but i am having an error generating an OpenAPI document using the endpoint-framework-tools (Question/Issue) Long story short, I am having an "unclear" error while trying to generate the OpenAPI document of my google cloud endpoint project. Official google docs (here) states the below method to generate the file: endpoints-framework-tools-2.0.0-beta.11/bin

Sending images as a base64 string to a google cloud endpoint from cms

房东的猫 提交于 2019-12-24 18:06:15
问题 I am trying to send an image from my cms to my Google Cloud Endpoint to be stored in the Google Datastore. The image is converted into a base64 string then send to the endpoint. It works just fine when i'm sending it from my android application but when i try sending it from the cms it throws an error. I've had to change my api method because the other api method uses a custom object from java and the cms is using javascript. The only ways I have found to send an image to the endpoint is

Gradle builds but does not run android project

有些话、适合烂在心里 提交于 2019-12-24 15:21:34
问题 If I do Clean Project or Build Project everything works fine. But if I try to run the android app, then I get the errors. Also the App-Engine portion runs fine. So only the android portion causes problems My app is an AppEngine Connected Android Project, with Endpoints Gradle file apply plugin: 'com.android.application' 

android {
 compileSdkVersion 23
 buildToolsVersion "23.0.0" 

 defaultConfig { 
 applicationId "com.mycompany.app.android"
 minSdkVersion 14 
 targetSdkVersion 23


App engine RPC discovery doc

懵懂的女人 提交于 2019-12-24 13:25:55
问题 I've been using app engine for Java with cloud endpoints to create a REST api and have suddenly run into this error: WARNING: No discovery doc for API hylytit version v1 in rpc format I'm trying to load the Javascript client library into a web page to do a GET call. In the web console, I see this: GET http://localhost:8888/_ah/api/discovery/v1/apis/hylytit/v1/rpc?fields=methods%2F*%2Fid&pp=0 [HTTP/1.1 404 Not Found 5ms] I'm unfamiliar with what RPC discovery docs are and can't find much

IntegerField value gets converted to a string for some numbers

六月ゝ 毕业季﹏ 提交于 2019-12-24 11:02:26
问题 Having a Cloud Endpoints (ProtoRPC) message class with an integer field, e.g. TestMsg(messages.Message): int_field = messages.IntegerField(1) and a method: @endpoints.method(VoidMessage, TestMsg) def test_int_field(): return TestMsg(int_field=1234567890123) On local dev server JSON response correctly results in: { int_field: 1234567890123 } Whereas in production the number gets converted to a string for some reason: { int_field: "1234567890123" } For smaller numbers integers don't seem to be

What changes can I make to a cloud-endpoint (app-engine) return object before I need a new API version? (and how is that done)

杀马特。学长 韩版系。学妹 提交于 2019-12-24 01:29:31
问题 I have an App-Engine service endpoint that is returning a POJO object consisting of many fields of various types. The Android client, built with the corresponding endpoint-libs, accepts this just fine. If I add new fields to the end of this object definition and start returning that extended object from the App-Engine servers, will older Android clients accept this and just ignore the extra, or will they barf? I see mention of support of different "versions" of an API, which seems to be

AppEngine Endpoints JsonMappingException - Avoid field to be serialized

自闭症网瘾萝莉.ら 提交于 2019-12-23 22:16:47
问题 Im having this error: com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException: Direct self-reference leading to cycle I have been trying to avoid the field causing this to be serialized but the error is not corrected. I have tried to put @JsonIgnore everywhere, in the getter, the setter, the attribute and every possible combination of those. Thanks -> Edit I can't import com.google.appengine.repackaged.org.codehaus.jackson.annotate.JsonIgnoreProperties, it says that "Use

Google Cloud Endpoints : java.io.IOException: Failed to retrieve API configs with status: 500

限于喜欢 提交于 2019-12-23 20:22:09
问题 I'm new to Java and Google Cloud Endpoints, I'm trying to follow this article http://rominirani.com/2014/01/10/google-cloud-endpoints-tutorial-part-1/ to build my first application. It was OK when I run the tutorial sample to access the http://localhost:8888/_ah/api/explorer page. But after I write a very simple application, When I tried to access http://localhost:8888/_ah/api/explorer , the browser shows HTTP ERROR 500 Problem accessing /_ah/api/explorer. Reason: Failed to retrieve API

How do I specify my own icons so they show up in a Google Endpoints API discovery document?

别说谁变了你拦得住时间么 提交于 2019-12-23 20:19:32
问题 I've tried to get the icons section to contain my own icons, rather than google search ones by trying to monkey patch ApiConfigGenerator.get_descriptor_defaults . Unfortunately these are ignored/discarded when the discovery document is finalized. { "kind": "discovery#restDescription", "etag": "...", "discoveryVersion": "v1", "id": "acme:v1", "name": "acme", "version": "v1", "description": "Acme API", "ownerDomain": "google.com", "ownerName": "Google", "icons": { "x16": "http://www.google.com

Google APis Explorer didn't found my available ApiMethod from my app-engine app

主宰稳场 提交于 2019-12-23 19:58:18
问题 I have an App-Engine app that compile fine and i test the methods calls using the Google Apis Explorer on localhost (https://developers.google.com/apis-explorer/?base=http://localhost:8888/_ah/api#p/) It works fine and i can test my api method using the Apis Explorer interface but as soon as i add a new Apimethod like @ApiMethod(name = "users.insertrandomuserv4") public User insertrandomuserv4() { User user = new User("234","myfirstname","mysecondname"); return user; } and i redeploy locally