Class DomainTemplateUpdateController
java.lang.Object
fr.tiogars.domaintemplate.domains.domaintemplate.controllers.DomainTemplateUpdateController
Exposes the endpoint that updates domain records.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the record update endpoint. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DomainTemplate> updateDomainTemplate(Long id, @Valid UpdateDomainTemplateRequest request) Replaces the payload of an existing record version.
-
Constructor Details
-
DomainTemplateUpdateController
Creates the record update endpoint.- Parameters:
service- domain record service
-
-
Method Details
-
updateDomainTemplate
@PutMapping("/api/v1/domaintemplate/{id}") public org.springframework.http.ResponseEntity<DomainTemplate> updateDomainTemplate(@PathVariable Long id, @Valid @RequestBody @Valid UpdateDomainTemplateRequest request) Replaces the payload of an existing record version.- Parameters:
id- persistent template identifierrequest- validated version and replacement payload- Returns:
- an OK response containing the record, or a not-found response when the version is absent
-