-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature] API: Add DeleteStatus handler and archive endpoint #121
Copy link
Copy link
Closed
Labels
go:yesReady to implementReady to implementpriority:p2Next sprintNext sprintrelease:backlogNot yet targetedNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchiveSprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a memberSquad triage inbox — Lead will assign to a membersquad:legolasAssigned to Legolas (Frontend Dev)Assigned to Legolas (Frontend Dev)squad:samAssigned to Sam (Backend Dev)Assigned to Sam (Backend Dev)type:featureNew capabilityNew capability
Metadata
Metadata
Assignees
Labels
go:yesReady to implementReady to implementpriority:p2Next sprintNext sprintrelease:backlogNot yet targetedNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchiveSprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a memberSquad triage inbox — Lead will assign to a membersquad:legolasAssigned to Legolas (Frontend Dev)Assigned to Legolas (Frontend Dev)squad:samAssigned to Sam (Backend Dev)Assigned to Sam (Backend Dev)type:featureNew capabilityNew capability
Summary
The Statuses API is missing a Delete/Archive endpoint. Same gap as Categories — the domain model supports soft-delete but no handler or endpoint exists to trigger it.
Current State
StatusEndpoints.csexposes:GET /api/v1/statuses— List allGET /api/v1/statuses/{id}— Get by IDPOST /api/v1/statuses— CreatePUT /api/v1/statuses/{id}— UpdateWork Required
Following the existing CQRS vertical slice pattern (mirror the Categories implementation):
1. Command + Handler
Create
src/Api/Handlers/Statuses/DeleteStatusHandler.cs:ArchivedBy,ArchivedOn,Archived = trueIStatusRepository2. Endpoint
Add to
StatusEndpoints.cs:3. Repository
Verify
IStatusRepositorysupports archive/update for the archived fields.Acceptance Criteria
DELETE /api/v1/statuses/{id}returns 204 for valid admin requestFiles
src/Api/Handlers/Statuses/DeleteStatusHandler.cs(new)src/Api/Handlers/Statuses/StatusEndpoints.cssrc/Api/Repositories/IStatusRepository.cs