Class DomainTemplateDeleteController

java.lang.Object
fr.tiogars.inception.domains.domaintemplate.controllers.DomainTemplateDeleteController

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

    • DomainTemplateDeleteController

      public DomainTemplateDeleteController(DomainTemplateDeleteService service)
      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