cal-itp/littlepay

Refactor API paging parameter name

Closed this issue · 0 comments

In discussion with Littlepay over the issues encountered during #53, we learned that at least for some endpoints, the paging parameter is called per_page instead of perPage as documented.

Here are the endpoints we implement that use paging, and the current parameter name in the docs:

Function Paging param in docs Additional notes
get_concession_groups per_page
get_concession_group_linked_funding_sources perPage should be per_page according to this thread with Littlepay
get_concession_group_products per_page
get_products perPage no change
#60 (get list of concession groups linked to a funding source) per_page Done in #62

Acceptance criteria

  • Endpoints above that use per_page are updated in the code