Closed Bug 917081 Opened 11 years ago Closed 11 years ago

Collections API should allow the image to be cleared for a collection.

Categories

(Marketplace Graveyard :: API, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-09-24

People

(Reporter: basta, Assigned: chuck)

References

Details

(Whiteboard: p=1 [qa-])

There is presently no way to remove an image from a collection (to my knowledge). The DELETE command against /rocketfuel/collections/<id|slug>/image/ should delete the image.
OS: Mac OS X → All
Priority: -- → P3
Hardware: x86 → All
Assignee: nobody → charmston
Status: NEW → ASSIGNED
Target Milestone: --- → 2013-09-24
Depends on: 918522
This isn't reasonably solvable the way images are currently stored. I filed bug 918522 to fix that. When that is done, we should update CollectionImageViewSet to: 1) Update it to allow DELETE requests (I think; it feels slightly abusive of HTTP, but I'm fine with it). 2) Return a 404 on GET and DELETE requests if an image does not exist. 3) Update the response of CollectionViewSet to return `null` if an image does not exist.
No longer depends on: 918522
Depends on: 918522
(In reply to Chuck Harmston [:chuck] from comment #1) > 2) Return a 404 on GET and DELETE requests if an image does not exist. If an image doesn't exist and a DELETE request is made against it, just return a 204. Mission accomplished.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: p=1 [qa-]
You need to log in before you can comment on or make changes to this bug.