Implemented an API to retrieve a list of users who have completed a specific survey.
API passes all the unit tests
Minor changes
Added surveyId field to the Survey Object
Added a surveyCompletionMap table to the schema to map which users have completed which surveys.
Modified getSurvey() and deleteSurvey() methods to accept surveyId: number as a parameter instead of surveyName since surveyName is not a unique identifier
Documentation
Documentation for this can be found on google drive in ID5/Dev Team/Issue 172 - GET /api/survey/:surveyId/user
PR Description
Minor changes
surveyId
field to the Survey ObjectsurveyCompletionMap
table to the schema to map which users have completed which surveys.getSurvey()
anddeleteSurvey()
methods to acceptsurveyId: number
as a parameter instead ofsurveyName
sincesurveyName
is not a unique identifierDocumentation
ID5/Dev Team/Issue 172 - GET /api/survey/:surveyId/user