Uri
Uri

Reputation: 26976

How to use protorpc messages and datastore models correctly in app engine

I'm finding myself writing datastore models, and then repeating the exact same set of attributes for their respective messages. Is there any smart way to convert between datastore entities and protorpc messages? A kind of built in to_message method, or do I have to do it by myself?

Upvotes: 0

Views: 696

Answers (1)

Maël
Maël

Reputation: 259

I think you are looking for this : http://endpoints-proto-datastore.appspot.com/ This library permit to use models directly in endpoints request. I advice you to read the library documentation.

GitHub repository : https://github.com/GoogleCloudPlatform/endpoints-proto-datastore

Upvotes: 2

Related Questions