Class TaskUpdateController

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

@RestController public class TaskUpdateController extends Object
Exposes the endpoint that updates domain records.
Since:
0.1.0
  • Constructor Details

    • TaskUpdateController

      public TaskUpdateController(TaskUpdateService service)
      Creates the record update endpoint.
      Parameters:
      service - domain record update service
  • Method Details

    • updateTask

      @PutMapping("/api/v1/task/{id}") public org.springframework.http.ResponseEntity<Task> updateTask(@PathVariable Long id, @Valid @RequestBody @Valid UpdateTaskRequest request)
      Replaces the payload of an existing record version.
      Parameters:
      id - persistent template identifier
      request - validated version and replacement payload
      Returns:
      an OK response containing the record, or a not-found response when the version is absent