Closed DiegoSHS closed 2 months ago
This pull requests add new SubjectModule module for crud operations
SubjectModule
SubjectService
SubjectController
CreateSubjectDto
UpdateSubjectDto
create()
findByProgram()
findOne()
findAll()
update()
JSDoc Documentation
if is related to an issue or can close an issue
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 pull requests add new
SubjectModule
module for crud operationsChanges
SubjectService
to use the prisma service as a provider and perform the crud operations.SubjectController
to handle http methods and sub routes for the subject's route.CreateSubjectDto
andUpdateSubjectDto
to bring the datatypes for the service and perform some validations.Details
SubjectService
create()
: Creates a new subject.findByProgram()
: Returns all subjects of an educational.findOne()
: Returns a subject by its id.findAll()
: Returns all subjects.update()
: Updates a subject by its idSubjectController
create()
: Handles the post request to create a new subject.findAll()
: Handles the get request to get all subjects.findOne()
: Handles the get request to get a subject by id.findByProgram()
: Handles the get request to get all subjects by program id.update()
: Handles the patch request to update a subject.JSDoc Documentation
SubjectController
andSubjectService
for better understanding and maintenance.Related Issues
if is related to an issue or can close an issue
Notes
Thank you for reviewing this pull request. I look forward to your feedback.