Skip to content

Use paginated endpoint to list projects #1043

@wonder-sk

Description

@wonder-sk

Let's use the newly available API endpoint that limits number of returned projects (the existing endpoint will be removed).

The new request should look like this:

https://public.cloudmergin.com/v1/project/paginated?page=1&per_page=50

The request returns also the total count, so we know if we may need to get more pages or not.

To make things simple, I would suggest that if count is more than the number of items we already have, at the bottom of the list there would be a button "Load more projects" that would fetch another 50 projects and append them to the current list.

Metadata

Metadata

Assignees

Labels

syncIntegration with Mergin Maps backend

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions