Project

General

Profile

Actions

Task #3679

closed

Idea #3413: [Keep] Keep Server accepts list of trashable blocks

Implement TrashHandler

Added by Tim Pierce over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Tim Pierce
Target version:

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.
Actions #1

Updated by Tim Pierce over 9 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Tim Pierce over 9 years ago

  • Assigned To set to Tim Pierce
Actions #3

Updated by Tim Pierce over 9 years ago

  • Status changed from In Progress to Resolved
  • Remaining (hours) set to 0.0
Actions

Also available in: Atom PDF