Actions
Task #3679
closedIdea #3413: [Keep] Keep Server accepts list of trashable blocks
Implement TrashHandler
Description
A "PUT /trash" HTTP request should be routed to a TrashHandler:
- The TrashHandler should make sure the request comes from Data Manager, and return 401 Unauthorized if not.
- If the request is valid, it should parse the request body as a JSON message and make sure it has a valid structure. If the JSON unmarshalling fails, TrashHandler should return 400 Bad Request.
- Otherwise, if the request is syntactically valid and comes from Data Manager, TrashHandler should return 200 OK and send the parsed list to the TrashCollector, which runs asynchronously in a goroutine.
Updated by Tim Pierce over 10 years ago
- Status changed from In Progress to Resolved
- Remaining (hours) set to 0.0
Actions