Closed coby111 closed 3 months ago
This PR introduces the following improvements and functionalities to the template service:
Template creation:
create
List of templates:
findAll
Exception handling with custom messages.
Template update:
update
Deletion of templates:
remove
Validation of IDs and foreign keys:
validateId
validateAreaId
validateResponsibleId
validateRevisedById
DTOs with validations:
CreateTemplateDto
UpdateTemplateDto
/templates
/templates/:id
Template removal:
Thank you for reviewing this pull request. I look forward to your feedback.
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.
Overview
This PR introduces the following improvements and functionalities to the template service:
Template creation:
create
).List of templates:
findAll
).Exception handling with custom messages.
Template update:
update
).Exception handling with custom messages.
Deletion of templates:
remove
).Validation of IDs and foreign keys:
validateId
).validateAreaId
,validateResponsibleId
,validateRevisedById
).DTOs with validations:
CreateTemplateDto
with validations and custom messages.UpdateTemplateDto
with validations and custom messages.Changes
Service
DTOs
How to test
Template creation:
/templates
with valid and invalid data to check validations and error messages.List of templates:
/templates
to check listing and exception handling.Template update:
/templates/:id
with valid and invalid data to check validations and error messages.Template removal:
/templates/:id
to check for deletion and exception handling.Related Issues
Thank you for reviewing this pull request. I look forward to your feedback.