Class DomainTemplateDeleteController
java.lang.Object
fr.tiogars.inception.domains.domaintemplate.controllers.DomainTemplateDeleteController
Exposes the endpoint that archives a domain record.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the delete endpoint. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Archives an active record, preserving its database row and business code.
-
Constructor Details
-
DomainTemplateDeleteController
Creates the delete endpoint.- Parameters:
service- domain record deletion service
-
-
Method Details
-
deleteDomainTemplate
@DeleteMapping("/api/v1/domaintemplate/{id}") public org.springframework.http.ResponseEntity<Void> deleteDomainTemplate(@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
-