Class DomainTemplateSeedController
java.lang.Object
fr.tiogars.inception.domains.domaintemplate.controllers.DomainTemplateSeedController
Exposes the endpoint that seeds a collection of domain records.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the seed endpoint. -
Method Summary
Modifier and TypeMethodDescriptionseedDomainTemplate(List<@Valid CreateDomainTemplateRequest> records) Creates or replaces the supplied records.
-
Constructor Details
-
DomainTemplateSeedController
Creates the seed endpoint.- Parameters:
service- domain record seed service
-
-
Method Details
-
seedDomainTemplate
@PostMapping("/api/v1/domaintemplate/seed") @ResponseStatus(CREATED) public List<DomainTemplate> seedDomainTemplate(@RequestBody List<@Valid CreateDomainTemplateRequest> records) Creates or replaces the supplied records.- Parameters:
records- validated records to seed- Returns:
- stored records in input order
-