rena
rena

Reputation: 1278

Google Cloud Endpoints return value from a method

How can I return a value (i.e. boolean, string, etc.) from either an @endpoint.method or a @MyModel.method (EndpointsModel)?

Upvotes: 1

Views: 567

Answers (1)

Romin
Romin

Reputation: 8816

As per the documentation, you cannot write simple types like String, int, etc. The return types will need to be a POJO, an array or a Collection.

https://developers.google.com/appengine/docs/java/endpoints/paramreturn_types

Upvotes: 1

Related Questions