core
core copied to clipboard
Enhance GET /api/v2/tags endpoint (Basic Tag Listing)
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
- GET /api/v2/tags returns all tags (up to default limit)
- filter=market returns tags containing "market" (case-insensitive)
- global=true includes SYSTEM_HOST tags, false excludes them
- site parameter filters by site ID or name correctly
- Can combine filter + site + global parameters
- Invalid site returns 400 with appropriate error
- 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