CADELmx / GPD_BACKEND

This is a NESTjs project that implements the GPD project's backend logic
MIT License
1 stars 0 forks source link

Implementation of restrictions, validations and custom messages #20

Closed coby111 closed 3 months ago

coby111 commented 3 months ago

Overview

This PR introduces the following improvements and functionalities to the template service:

Template creation:

List of templates:

Validation of IDs and foreign keys:

DTOs with validations:

Changes

Service

DTOs

How to test

  1. Template creation:

    • Send a POST request to /templates with valid and invalid data to check validations and error messages.
  2. List of templates:

    • Send a GET request to /templates to check listing and exception handling.
  3. Template update:

    • Send a PATCH request to /templates/:id with valid and invalid data to check validations and error messages.
  4. Template removal:

    • Send a DELETE request to /templates/:id to check for deletion and exception handling.

Related Issues

Thank you for reviewing this pull request. I look forward to your feedback.

github-actions[bot] commented 3 months ago

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files