Class TaskDeleteController
java.lang.Object
fr.tiogars.chat.domains.task.controllers.TaskDeleteController
Exposes the endpoint that archives a domain record.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionTaskDeleteController(TaskDeleteService service) Creates the delete endpoint. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> deleteTask(Long id) Archives an active record, preserving its database row and business code.
-
Constructor Details
-
TaskDeleteController
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
-