fix(model): add result information to paginated endpoints #75

Open
opened 2025-08-26 15:14:38 +00:00 by chartgerink · 0 comments
Owner

On paginated endpoints, it makes sense to provide pagination tools. However, in the front end that becomes hard when the information of how many pages and which current page is not available.

This issue tracks adding this information. Will need to alter endpoint JSON response to an Object with an array of results, which may require updating tests and processes that rely on it.

{
  current_page: 1,
  max_pages: 20,
  results: []
}
On paginated endpoints, it makes sense to provide pagination tools. However, in the front end that becomes hard when the information of how many pages and which current page is not available. This issue tracks adding this information. Will need to alter endpoint JSON response to an Object with an array of results, which may require updating tests and processes that rely on it. ```json { current_page: 1, max_pages: 20, results: [] } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: researchequals/api#75
No description provided.