API Endpoints - minute-tutor/back-end GitHub Wiki

API Calls

(GET) Get User by ID

/getUserByID/<id>

Will return the Google user with the ID <id> inside the User schema

(GET) Get Users by Skill

/findUsersBySkill/<skill>

Will return an array of all the Google users with skill <skill>.

(POST) Create new User

/newUser/

With body fields as x-www-form-urlencoded:

  • id (From Google)
  • email (From Google)
  • name (From Google)
  • description
  • skills
  • rate
  • skypeID

(POST) Add Review for User

/addReview/

With body fields as x-www-form-urlencoded:

  • id (From Google)
  • review Stars to rate

(POST) Update User Last Logged In Time

/updateLogin/

With body fields as x-www-form-urlencoded:

  • id (From Google)
  • timestamp Current time in milliseconds

(POST) Update Description

/updateDescription/

With body fields as x-www-form-urlencoded:

  • id (From Google)
  • description

(POST) Update Rate

/updateRate/

With body fields as x-www-form-urlencoded:

  • id (From Google)
  • rate

(POST) Update Skype ID

/updateSkypeID/

With body fields as x-www-form-urlencoded:

  • id (From Google)
  • skypeID

(POST) Add Skill

/addSkill/

With body fields as x-www-form-urlencoded:

  • id (From Google)
  • skill
⚠️ **GitHub.com Fallback** ⚠️