Questions tagged [endpoints-proto-datastore]

This library is intended to be used with the Python version of Google Cloud Endpoints. The Endpoints Proto Datastore API provides an abstraction that allows existing model classes to be used with Google Cloud Endpoints. By extending the functionality provided by `ndb.Model` class and the `endpoints` library, this library allows you to directly interact with model entities in your API methods rather than ProtoRPC requests.

This project is supported by engineers on the Google Cloud Endpoints team.

Resources:

110 questions
30
votes
1 answer

Endpoints API - protorpc validation error

I'm getting some weird errors from protorpc when I use endpoints. In this code: class Application(EndpointsModel): _message_fields_schema = ('id', 'name') created = ndb.DateTimeProperty(auto_now_add=True) name = ndb.StringProperty() …
24
votes
6 answers

Dynamically created method and decorator, got error 'functools.partial' object has no attribute '__module__'

I am currently using EndpointsModel to create a RESTful API for all my models on AppEngine. Since it is RESTful, these api have a lot of repeat code which I want to avoid. For example: class Reducer(EndpointsModel): name =…
11
votes
1 answer

Is there a way to secure Google cloud endpoints proto datastore?

my setup: Python, google app engine using endpoints_proto_datastore iOS, endpoints Obj-C client library generator Background I've setup a test Google cloud endpoints api and had it running pretty quickly. It works great, using the test app in the…
5
votes
0 answers

Proto DataStore not working on apple silicon

getting error when i run my code in Android Studio Canary 15 Execution failed for task ':app:generateInappProto'. Could not resolve all files for configuration ':app:protobufToolsLocator_protoc'. Could not find protoc-3.17.0-osx-aarch_64.exe…
5
votes
2 answers

Google App Engine suddenly started failing endpoints authentications

I have an an app on Google App Engine with both an iOS and Android client that communicates with the server via Google Cloud Endpoints, and at some time yesterday between 19:21 and 20:24 (server time, so I assume Pacific), EVERY request to my server…
5
votes
1 answer

Multiple Auth Providers with AppEngine, Webapp2, and Cloud Endpoints Proto Datastore

I'm working on a webapp that will allow users to authenticate using simpleauth. For now I will be supporting Google and Facebook. Other than logging in and out (using webapp2), the webapp will consist of Cloud Endpoint APIs. The clients will be web,…
5
votes
2 answers

Local testing for Android App using Cloud Endpoints for Google App Engine

I am developing an Android app that uses Google Cloud Endpoints on Google App Engine (in Python) for its backend. The Android app authorizes the user using Google Play Services on the Android device, and it all works fantastically. However, now…
4
votes
2 answers

How to Define Google Endpoints API File Download Message Endpoint

All the examples I can find on google endpoint api (e.g., tic-tac-toe sample) show strings, integers, enums, etc fields. None of the examples say anything about how to specify document (e.g., image or zip files) uploads or downloads using the API.…
4
votes
2 answers

Google Cloud endpoints and service accounts returning :Oauth framework user didn't match oauth token user

Im trying to access a google cloud endpoint from a cmdline using service account similar to https://code.google.com/p/google-api-python-client/source/browse/samples/service_account/tasks.py As instructed from the example, I created a clientid +…
4
votes
1 answer

Cloud Endpoints - Retrieving a single entity from datastore (by a property other than the helper methods provided by EndpointsModel)

This question completely follows on from a related question I had asked (and was answered) here: Error when trying to retrieve a single entity As I understand, to retrieve a single entity from the datastore using a property other than helper methods…
Tiki
  • 105
  • 2
  • 7
3
votes
1 answer

Referring a single Google datastore kind multiple times in another kind with ndb

I have the below 2 ndb models from endpoints_proto_datastore.ndb import EndpointsModel class Foo(EndpointsModel): attr1 = ndb.StringProperty(required=True) class Bar(EndpointsModel): attr1 = ndb.KeyProperty('Foo', required=True) attr2…
3
votes
2 answers

Android Studio: IncorrectOperationException when 'Add as Library' is clicked whilst trying to configure Google Apps Endpoints client libraries

I am trying to generate and use the android client libraries for a Python google app engine project following this guide https://developers.google.com/appengine/docs/python/endpoints/consume_android Everytime I get to this step Select the library…
3
votes
0 answers

Endpoints Proto Datastore - Ancestor query alias property

I am new to GAE and Endpoints Proto Datastore. I've been playing around with a project which has photos and each photo can have many comments. Using keys_with_ancestors as a guide, I've implemented it such that a comment has a photo as a parent and…
2748
  • 123
  • 2
  • 5
3
votes
1 answer

How to pass collection_fields from api request to @query_method decorator?

(This is a copy of a the same question posted on github about the awesome endpoints-proto-datastore library) I am trying to implement my API so that the client can pass a '?fields=' url parameter in the api request and then I can instruct the query…
3
votes
2 answers

Not work sample basic

I'm working with Google Endpoints with the basic example of endpoints-proto-datastore in http://endpoints-proto-datastore.appspot.com/ This is my file widgettiny_api.py import endpoints from google.appengine.ext import ndb from protorpc import…
csamiro
  • 71
  • 6
1
2 3 4 5 6 7 8