Actions
Story #2447
closedAs a user, I can use REST API to remove a publisher from a repository.
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 17
Quarter:
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.
Actions
Add publisher removal route to the REST API
closes #2447 https://pulp.plan.io/issues/2447