Skip to content

API : The wu/v2 does not appear to support pagination or filtering via query parameters. #370

@vuckro

Description

@vuckro

The wu/v2 API does not appear to support pagination or filtering via query parameters.

When using Bricks Builder (Query Loop type API) on the /wu/v2/site endpoint, standard parameters (page, per_page, number) are not taken into account — the response always returns all items regardless of pagination.

Additionally, the documentation lists endpoints in the plural form while the actual routes use the singular:

  • Docs: /wu/v2/sites, /wu/v2/customers, /wu/v2/memberships
  • Actual: /wu/v2/site, /wu/v2/customer, /wu/v2/membership

Ref: https://ultimatemultisite.com/docs/ro/developer/rest-api/overview/

To Reproduce

  1. Call GET /wp-json/wu/v2/site?page=1&per_page=5
  2. The response returns all sites with no limit applied
  3. X-WP-Total and X-WP-TotalPages headers are missing or incorrect

Expected behavior

  • Support for page and per_page (or number) parameters to paginate results
  • X-WP-Total and X-WP-TotalPages headers present in the response
  • Documentation updated to reflect singular route names

Environment

  • Plugin: Ultimate Multisite
  • API namespace: wu/v2
  • Tested with: Bricks Builder Query Loop (API type)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions