INSTRUCTIONS FOR TESTING
create DATABASE mock
at MYSQL server- Please run
npm test
for unit testing. - You may change the
data
variable for testing purpose.
INSTRUCTIONS FOR DEVELOPMENT
create DATABASE registration
at MYSQL server- Please run
npm start
for development. - For registering students to a specified teachers, please use
POST api/register
. - For retrieving a list of students common to a given list of teachers, please use
GET /api/commonstudents/?{query}
. An example of query can beteacher=teacherken%40example.com
orteacher=teacherken%40example.com teacher=teacherjoe%40example.com
- For suspending a particular student, use
POST /api/suspend
- For retrieving a list of students who can receive a given notification, use
POST /api/retrievefornotifications