Should I use CollectionResponse as the return type in the GAE endpoint API or can I use java entity collections?

It seems that I can safely use simple java collections as return types (as long as they contain entities) in my endpoint APIs. I was wondering if I missed something. Is there any benefit to using CollectionResponse?

Thanks.

+5
source share
1 answer

Yes, you can use collections safely ( doc here ). The advantage of CollectionResponse is its built-in support for paging and other useful features.

+5
source

Source: https://habr.com/ru/post/1201002/


All Articles