可以对NDB对象进行建模,以便与protorpc消息很好地组合

时间:2023-02-13 23:08:13

I'm trying out Google App Engine's Endpoints service on an existing GAE project. My existing application has several NDB classes which I'd basically just like to spit out as JSON through the Endpoints framework. I'm trying to find the best DRY way of doing this - it's not clear how Endpoints was designed to expose an NDB class through a protorpc Message. Which I would think is the most common use case.

我正在现有的GAE项目上试用Google App Engine的终端服务。我现有的应用程序有几个NDB类,我基本上只想通过Endpoints框架将其作为JSON吐出。我正在尝试找到最好的DRY方式 - 目前尚不清楚Endpoints是如何通过protorpc Message公开NDB类的。我认为这是最常见的用例。

1 个解决方案

#1


0  

I'm in the same boat. endpoints-proto-datastore was the answer from Google. The library works very well when the Message and the NDB model is one-to-one. But it quickly became challenging when I worked on a composite NDB models.

我在同一条船上。 endpoints-proto-datastore是Google的答案。当Message和NDB模型是一对一时,该库非常有效。但是当我研究复合NDB模型时,它很快变得具有挑战性。

It seems the library is no longer maintained as the author left Google.

当作者离开Goog​​le时,似乎不再维护图书馆。

#1


0  

I'm in the same boat. endpoints-proto-datastore was the answer from Google. The library works very well when the Message and the NDB model is one-to-one. But it quickly became challenging when I worked on a composite NDB models.

我在同一条船上。 endpoints-proto-datastore是Google的答案。当Message和NDB模型是一对一时,该库非常有效。但是当我研究复合NDB模型时,它很快变得具有挑战性。

It seems the library is no longer maintained as the author left Google.

当作者离开Goog​​le时,似乎不再维护图书馆。