Split CartItemView so swagger stops showing broken cart endpoints #5
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/card-urls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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>