Replies: 1 comment
-
As i thought it thru, i made some changes. Now I return only the list of items for the page and use x-pagination response header to return the paging info
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I was wondering about how results are returned from the API
We have a need to return paged results from our data source and I thought that a consistent result object would be ideal and wanted to get some thoughts on my solution. In the application project i created a couple of extension methods
The 3 result objects with the paged results being this class
My query looks like this
The other 2 results are for a full list and a single item but very similar in returned fields
The api call is
and results are like
I have not integrated ErrorOr yet into my results. I would just like to get others thoughts on results especially paged ones
TIA
John Oriente
Beta Was this translation helpful? Give feedback.
All reactions