Why don't Google Cloud Endpoints Support Simple Object Return Types?

*爱你&永不变心* 提交于 2019-12-06 02:43:31

So there are workarounds for returning "simple object types", in java you could return a StringResponse which would look something like this:

class StringResponse {
  String value;
  setter, getter... etc
}

Because they are communicating with various programming languages that may or may not support the same data types. This is why most web API's will use something like XML or JSON as the data response type since it's standardized and parsable from any language.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!