Skip to content

[Bug]: paginated requests do not include perPage query parameter #31

@ThisIsDemetrio

Description

@ThisIsDemetrio

What version or versions you have tested?

1.0.5

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

What did you expect to happen?

Looking at the code, specifically on the getPaginated method in the HttpClient class, we noticed that the get_page query parameter to set the number of elements retrieved in a single page.

However, several Mia-Platform APIs does not use the per_page param, since it is deprecated in favor of perPage. We should include also this param to reflect these changes.

What happened instead?

It actually works the same, but some API (e.g. Marketplace) uses the new syntax and this might create issues (depending on the default perPage value assigned).

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions