Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.
/ myFFCSreLoaded Public archive

myFFCS from scratch as promised using promises

Notifications You must be signed in to change notification settings

GDGVIT/myFFCSreLoaded

Repository files navigation

myFFCSreLoaded

Click here for demo

API Reference:

BaseUrl: http://52.51.60.178:3000

Run in Postman

/getslot

request type: GET,
request query: {q:'<course_code>'}
success response:{response:'<slots>'}  STATUS:200
error response:{message:'error'} STATUS:500

/getcourse

request type: GET,
request query: {courseCode:'<course_code>',slots:'<slot>'}
success response:{response:'<courses>'} STATUS:200
error response:{message:'error'} STATUS:500

/validate

request type: POST,
request body: {courseId:'<courseId>'}
request headers: {token:"<mongo_uid>"}
success response:{'status':true} STATUS:200
error response:{'status':false} STATUS:500

/deletecourse

request type: POST,
request body: {courseId:'<courseId>'}
request headers: {token:"<mongo_uid>"}
success response:{'status':true} STATUS:200
error response:{'status':false} STATUS:500

/suggestcourse

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

/detail

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

/register

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

/login

request type: POST,
request body: {regno:'<regno>',password:'<password>'}
success response: STATUS:200
error response: STATUS:500

/apiLogin

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
}

Releases

No releases published

Packages

No packages published