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)
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.
Updated•11 years ago
|
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → charmston
Status: NEW → ASSIGNED
Target Milestone: --- → 2013-09-24
Assignee | ||
Comment 1•11 years ago
|
||
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
Reporter | ||
Comment 2•11 years ago
|
||
(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.
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
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.
Description
•