Story #2447
closedAs a user, I can use REST API to remove a publisher from a repository.
100%
Description
As a result of this story the user will be able to make a DELETE request to /api/v3/publishers/<pk> and receive back a 202 response that looks like this:
[
{
"_href": "/api/v3/tasks/adlfk-bala-23k5l7-lslser",
"task_id": "adlfk-bala-23k5l7-lslser"
}
]
The publisher viewset should be extended to handle a DELETE. As a result of the request pulp.app.tasks.publisher.delete.apply_async_with_reservation() should be called and the AsyncResult should be used to instantiate an OperationPostponedResponse[0] object. The object should then be returned.
Updated by semyers about 8 years ago
- Groomed changed from No to Yes
Just to clarify, our ViewSets already support the DELETE verb, so this would specifically entail implementing the existing ViewSet "destroy" method, having it return the response as explained in the description.
http://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing
Updated by ttereshc about 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Updated by ttereshc about 8 years ago
- Status changed from ASSIGNED to POST
Added by ttereshc over 7 years ago
Added by ttereshc over 7 years ago
Revision ed928575 | View on GitHub
Add publisher removal route to the REST API
Updated by ttereshc over 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|ed9285755d83dcf65075d32ae04b8c5fb280f2db.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Add publisher removal route to the REST API
closes #2447 https://pulp.plan.io/issues/2447