The POST /assessments/program route needs to be implemented and fully tested.The POST /assessments/program creates a new programAssessment in the program_assessments table.The request is An object of type ProgramAssessment and return value is An object of type ProgramAssessment.
This route does not expect URL params.
This issue continues the work from issue #515
Facilitator
res.status(201).json(itemEnvelope(programAssessment)
Participant
This should return an UnauthorizedError. Participants shouldn't have access to this route.
Additional Details and Resources
This route requires the principal ID (the user ID) from the session information. The only person with a Facilitator role should be able to create a program assessment.
Correct Project Selected
[X] This issue is linked to the appropriate project
Describe the Feature / Enhancement
The POST /assessments/program route needs to be implemented and fully tested.The POST /assessments/program creates a new programAssessment in the program_assessments table.The request is An object of type ProgramAssessment and return value is An object of type ProgramAssessment. This route does not expect URL params.
This issue continues the work from issue #515 Facilitator res.status(201).json(itemEnvelope(programAssessment)
Participant This should return an UnauthorizedError. Participants shouldn't have access to this route.
Additional Details and Resources
This route requires the principal ID (the user ID) from the session information. The only person with a Facilitator role should be able to create a program assessment.
Correct Project Selected
Labels