는 엔드 포인트 프로토 데이터 저장소 API는 공식되지 않습니다 App Engine SDK의 일부이지만 제가 작업 해 온 라이브러리입니다.
여기는 documented이며 기쁜 질문입니다. 그것이 나오는 것에 따라, EndpointsModel
은 subclass of ndb.Model
, 그래서 당신은 두 세계의 최고를 얻고있다 : 워드 프로세서의 방문 페이지에 언급 한 바와 같이
>>> from endpoints_proto_datastore.ndb import EndpointsModel
>>> from google.appengine.ext import ndb
>>> EndpointsModel.__bases__ == (ndb.Model,)
True
는 이점은 도서관이 :
.. 기존 모델 클래스를 Google Cloud 끝점과 함께 사용할 수 있습니다. ndb.Model
클래스 및 endpoints
라이브러리에서 제공하는 기능을 확장하면이 라이브러리를 통해 요청보다는 API 메서드에서 모델 엔터티와 직접 상호 작용할 수 있습니다.
또한 라이브러리 사용시 talk을 제공했습니다. 여기에는 명시 적으로 애플리케이션에 endpoints_proto_datastore
library을 추가해야한다고 명시되어 있습니다.
$ cd path/to/your/application/code
$ wget https://endpoints-proto-datastore.googlecode.com/files/endpoints_proto_datastore.zip
$ unqip -q endpoints_proto_datastore.zip