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.
Yes, you can use collections safely ( doc here ). The advantage of CollectionResponse is its built-in support for paging and other useful features.
Source: https://habr.com/ru/post/1201002/More articles:How can I suppress this conclusion? - rHow to specify scripting rights using Python Setuptools - pythonAndroid integer xml resource value does not change when switching between portrait and landscape - androidNo pointer path for using table cell in Swift - iosHow scalable are the events sent by the server in Rails? - multithreadingClose popup without button? - c #WPF: set ListViewItem from text block to Listview in DataTemplate - c #Invalid HTML5 audio attribute - currentTime? - javascriptRemove logger from slf4j (reverse getLogger)? - javaStrange equality behavior in java - javaAll Articles