BaseUrl: http://52.51.60.178:3000
request type: GET,
request query: {q:'<course_code>'}
success response:{response:'<slots>'} STATUS:200
error response:{message:'error'} STATUS:500
request type: GET,
request query: {courseCode:'<course_code>',slots:'<slot>'}
success response:{response:'<courses>'} STATUS:200
error response:{message:'error'} STATUS:500
request type: POST,
request body: {courseId:'<courseId>'}
request headers: {token:"<mongo_uid>"}
success response:{'status':true} STATUS:200
error response:{'status':false} STATUS:500
request type: POST,
request body: {courseId:'<courseId>'}
request headers: {token:"<mongo_uid>"}
success response:{'status':true} STATUS:200
error response:{'status':false} STATUS:500
request type: POST,
request body: {reg:'<mongo_uid>'}
success response:{message:true,data:"course and count of that batch"} STATUS:200
error response:{message:false} STATUS:500
request type: GET,
request headers: {token:"<mongo_uid>"}
success response:{'status':true,'data':{'newAllotedCourse2':'<allCourses>'}} STATUS:200
error response:{'status':false,'data':{'newAllotedCourse2':[]}} STATUS:500
request type: POST,
request body: {name:'<name>',regno:'<regno>',password:'<password>',type:'mobile'}
success response:{status:"inserted"} STATUS:200
error response:{status:"error"} STATUS:500
request type: POST,
request body: {regno:'<regno>',password:'<password>'}
success response: STATUS:200
error response: STATUS:500
request type: POST,
request body: {username:'<regno>',password:'<password>'}
success response: STATUS:200
Response Body:
{
"message": "success",
"status": true
}
failiure response: STATUS 500
Response Body:
{
"message": "user not found"
"status": false
}
OR
{
"message": "user not found"
"status": false
}
OR
{
"error":"server faliure",
"status":false
}