/API-Design

API Design

Primary LanguageJavaScriptMIT LicenseMIT

API-Design

API Design for a Job posting Website.

Routes

  • [Home]
  • [Candidates]
  • [Recruiters]

Home Routes

Methods

  • [GET ] /

List all the open jobs

Candidate Routes

Methods

  • [POST ] /candidate/signup

Candidate Signup

  • [POST ] /candidate/login

Candidate Login

  • [POST ] /candidate/logout

Candidate Logout

  • [GET ] /candidate/refresh_token

Details of Token for persistent session

  • [GET ] /candidate/infor

Candidate Information

  • [GET ] /candidate/getAppliedJobs

List all the jobs that Candidate has applied to

  • [POST ] /candidate/apply

Post Request to apply to a job using job_id

  • [POST ] /candidate/deleteJob

Post Request to delete a job using job_id

Recruiter Routes

Methods

  • [POST ] /recruiter/signup

Recruiter Signup

  • [POST ] /recruiter/login

Recruiter Login

  • [POST ] /recruiter/logout

Recruiter Logout

  • [GET ] /recruiter/refresh_token

Details of Token for persistent session

  • [GET ] /recruiter/infor

Recruiter Information

  • [POST ] /recruiter/createJob

Post Request to generate a job by Recruiter

  • [GET ] /recruiter/getJobDetails

Get Request to get the details of all the candidates which have applied to the job listed by Recruiter

  • [POST ] /recruiter/acceptCandidate

Post Request to accept a candidate

  • [POST ] /recruiter/rejectCandidate

Post Request to reject a candidate