Questions tagged [google-cloud-endpoints]

Google Cloud Endpoints is a technology developed by Google for use on Google App Engine to allow developers to develop and host APIs easily, and to generate strongly-typed client libraries for Java (Android) and Objective-C (iOS), and dynamically-typed libraries for JavaScript.

Google Cloud Endpoints is a technology developed by Google for use on Google App Engine to allow developers to develop and host APIs easily.

Features

  • Support for Java and Python runtimes
  • Built on Google's API infrastructure - it works with many of the same tools and libraries used for Google's own APIs, such as the APIs Explorer and APIs Console
  • Automatically-generated, statically-typed client libraries for Android and iOS - these libraries are using the same Google-authored Java and Objective-C libraries you would use to access other Google-provided APIs such as the Calendar API
  • Dynamically-typed JS client library - again, the same library you use to access other Google-provided APIs in JS, which is called Google JavaScript client library
  • Built in support for OAuth 2
  • Integration with the Google Plugin for Eclipse - this allows you to automatically create an API based on a model, or an App Engine application to back an existing Android app
  • Support for local development - you can build and test your API using the App Engine development environment, just as with other App Engine features

Learn More

Check out the Java and Python documentation for more details on using Endpoints.

2491 questions
1
vote
1 answer

Google App Engine Datastore too slow persistence

I'm developing a GAE/J app using JDO to manage the Datastore. It offers a number of Endpoints to interact with the data and so on. I'm also developing a Javascript client for those endpoints. Situation: First I have an endpoint method Token…
MikO
  • 18,243
  • 12
  • 77
  • 109
1
vote
1 answer

Use Datastore Entity's ID or Key in ProtoRPC.Message

When transmitting references to other Datastore entities using the Message class from ProtoRPC, should I use str(key) or key.id(). The first one is a String the second one is a long. Does it make any difference in the end? Are there any…
1
vote
1 answer

Why can't api method names contain underscores?

My method names get translated from some_method to apiname.resource.somemethod and gapi.client.apiname.resource.somemethod. Example: @endpoints.method(messages.VoidMessage, messages.VoidMessage, name='resource.some_method',…
12345
  • 565
  • 7
  • 12
1
vote
1 answer

full path of Blobstore callback url

Does anyone know the full path of the callback url that the blobstore uses? Say I specify upload in blobstoreService.createUploadUrl("/upload") as the callback. Does the blobstore call http://localhost:8888/_ah/api/myapp/v1/upload or does it use…
1
vote
2 answers

I'm getting a 404 in google cloud endpoints on app engine

In my app, the app.yaml (the relevant part) looks like this: handlers: - url: /favicon\.ico static_files: favicon.ico upload: favicon\.ico - url: /logs script: logviewer.main.app - url: /static static_dir: static - url: /(.*\.html) …
1
vote
1 answer

Send image as base64 via Google Endpoints

I have an endpoint that must send an image in the response. The original image is a file in the server that I open with python (open().read()) and save it in the NDB as BlobProperty (ndb.BlobProperty()). My protoRPC message is a BytesField. If I go…
1
vote
1 answer

GET request parameters for a MessageField in AppEngine Endpoints is None

For some reason I am unable to read request parameters when using http_method=GET instead of POST. @endpoints.method(RequestMessage, ResponseMessage, name='get', path='mypath', …
mkhatib
  • 5,089
  • 2
  • 26
  • 35
1
vote
2 answers

Google Endpoints generated libraries for JAVA have wrong package

I have strange problem with generating process. After click on Generate Cloud Endpoint Client Library everything works right, but if I look in the endpoint-libs/ folder I saw that former folder structure was changed. First part of it is still ok…
sennin
  • 8,552
  • 10
  • 32
  • 47
1
vote
2 answers

how do I point my android app to my online apengine endpoint

I have created an app-engine connected android project. Presently I have deployed my backend (endpoint api) to app-engine. Now I want to point the android app (apk) to the online server/api. How do I do that? Basically, is the following all I have…
learner
  • 11,490
  • 26
  • 97
  • 169
1
vote
1 answer

How can I get the current logged in gmail user from cloud end point?

I am trying to get the current email id of the logged in google user. I tried something like the following which works in dev mode but not in production mode. public class EndpointAPI { @ApiMethod(httpMethod = HttpMethod.GET, path =…
Sathya
  • 1,076
  • 1
  • 8
  • 17
1
vote
1 answer

IntegerField value gets converted to a string for some numbers

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…
alex
  • 2,450
  • 16
  • 22
1
vote
1 answer

API Explorer shows only public Google Services

just updated to GAE 1.7.7 and since then the API Explorer doesn't show my API Services anymore, but only all public Google API Services. I generated the discovery document, cleared the browser cache, but the GAE logs keeps telling "GET…
1
vote
1 answer

How to retrieve data from the datastore on Android device, using Google App Engine with Cloud Endpoints?

I am building an Android Application using Google App Engine with Cloud Endpoints. I carefully followed this tutorial (https://developers.google.com/eclipse/docs/endpoints-addentities), thus I managed to successfully perform insert operation in the…
1
vote
1 answer

Cloud Endpoints support for text fields with more than 500 characters

I need to store a field that is usually over 500 characters. When using the String data type, App Engine fails and suggests to use the com.google.appengine.api.datastore.Text datatype in this case. When doing so, the Android client fails with the…
jdub
  • 133
  • 8
1
vote
1 answer

JsonMappingException: No suitable constructor found for type

Given the api endpoint @ApiMethod(name = "sendChallenge", httpMethod = HttpMethod.POST) public ExchangeList sendChallenge(ChallengeData request) throws Exception { return getFromDBThenProcess(request); } And the front end (android) call to…
Katedral Pillon
  • 14,534
  • 25
  • 99
  • 199