core icon indicating copy to clipboard operation
core copied to clipboard

Enhance GET /api/v2/tags endpoint (Basic Tag Listing)

Open hassandotcms opened this issue 1 year ago • 1 comments

Task

Context: Part of Feature #32940 (Tag Listing with Pagination and Filtering) in Tags Portlet Modernization Epic. This story modernizes the existing tag listing endpoint with basic filtering capabilities, laying the foundation for advanced features.

Definition of Done:

  • Basic listing returns all tags (with reasonable default limit)
  • Filter parameter with LIKE search (wildcards on both sides, case-insensitive)
  • Global parameter to include/exclude SYSTEM_HOST tags (default: false)
  • Site parameter accepting UUID, "SYSTEM_HOST", or site name
  • Response structure with entity array and pagination object (fixed values)
  • Site parameter validation (UUID format or valid site name)
  • Global parameter boolean validation
  • Error responses implemented (400, 401, 403, 500)
  • Postman tests for filter combinations

Proposed Objective

Same as Parent Issue

Proposed Priority

Same as Parent Issue

Acceptance Criteria

  1. GET /api/v2/tags returns all tags (up to default limit)
  2. filter=market returns tags containing "market" (case-insensitive)
  3. global=true includes SYSTEM_HOST tags, false excludes them
  4. site parameter filters by site ID or name correctly
  5. Can combine filter + site + global parameters
  6. Invalid site returns 400 with appropriate error
  7. Response includes pagination structure with default/fixed values

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

hassandotcms avatar Aug 11 '25 12:08 hassandotcms

PRs linked to this issue

github-actions[bot] avatar Aug 25 '25 13:08 github-actions[bot]