Class TaskDeleteController

java.lang.Object
fr.tiogars.chat.domains.task.controllers.TaskDeleteController

@RestController public class TaskDeleteController extends Object
Exposes the endpoint that archives a domain record.
Since:
0.1.0
  • Constructor Details

    • TaskDeleteController

      public TaskDeleteController(TaskDeleteService service)
      Creates the delete endpoint.
      Parameters:
      service - domain record deletion service
  • Method Details

    • deleteTask

      @DeleteMapping("/api/v1/task/{id}") public org.springframework.http.ResponseEntity<Void> deleteTask(@PathVariable Long id)
      Archives an active record, preserving its database row and business code.
      Parameters:
      id - persistent template identifier
      Returns:
      a no-content response when a record was archived, or a not-found response otherwise