Because these changes were made possible using an additional query to get the resulting metadata, the following error codes have been added to handle exceptions during its execution:
Error Code
Meaning
1001
Failure getting count of Announcements
1012
Failure getting count of Public Announcements
I am aware these could be breaking changes for these essential routes, but consuming the API using pagination becomes much easier when more pagination metadata are available. Result filtering, selecting, and sorting are fully functional with this PR.
This PR modifies the responses of the following endpoints:
GET /announcements/
GET /announcements/public
Previously, the API would respond to these requests like this:
results
resultCount
page
totalResultCount
totalPages
pageSize
specifiedExample:
GET /announcements/public?pageSize=1&page=3
Because these changes were made possible using an additional query to get the resulting metadata, the following error codes have been added to handle exceptions during its execution:
I am aware these could be breaking changes for these essential routes, but consuming the API using pagination becomes much easier when more pagination metadata are available. Result filtering, selecting, and sorting are fully functional with this PR.