Split CartItemView so swagger stops showing broken cart endpoints #5

Merged
Ghasemi merged 1 commit from fix/card-urls into master 2026-08-31 05:05:13 -04:00
Collaborator

CartItemView was registered on both /cart/items/ and
/cart/items/{item_uuid}/, so swagger listed POST/PATCH/DELETE on both
paths even though 3 of those 6 combinations raised a TypeError at
runtime (missing/unexpected item_uuid). Split into CartItemView (POST,
list path) and CartItemDetailView (PATCH/DELETE, detail path).

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

CartItemView was registered on both /cart/items/ and /cart/items/{item_uuid}/, so swagger listed POST/PATCH/DELETE on both paths even though 3 of those 6 combinations raised a TypeError at runtime (missing/unexpected item_uuid). Split into CartItemView (POST, list path) and CartItemDetailView (PATCH/DELETE, detail path). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ali added 1 commit 2026-08-31 04:32:56 -04:00
CartItemView was registered on both /cart/items/ and
/cart/items/{item_uuid}/, so swagger listed POST/PATCH/DELETE on both
paths even though 3 of those 6 combinations raised a TypeError at
runtime (missing/unexpected item_uuid). Split into CartItemView (POST,
list path) and CartItemDetailView (PATCH/DELETE, detail path).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Ghasemi merged commit dfbbbb2b22 into master 2026-08-31 05:05:13 -04:00
Ghasemi deleted branch fix/card-urls 2026-08-31 05:05:13 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: addwin/winofy-backend#5
No description provided.