I am trying to implement BFF ( backend for frontend ) pattern on my application.
Up to now my angular ui was doing several requests to get data and render on UI. But now instead of doing multiple requests I want to make one request and get all data for rendering.
I have a little confusion :)
Say I have a pageVm model which has - list of persons ( with pagination ) - and a set of cities ( without pagination )
Without BFF I would return list of persons and set headers required for pagination. And return cities without pagination information on header.
When I combine these two data into one VM object, what is the best way to pass pagination information via response?
thanks
Aucun commentaire:
Enregistrer un commentaire