BloomTech-Labs / CS8-jobme

MIT License
2 stars 3 forks source link

CS8-Rcruit https://www.rcruit.app/

RESTful API for Jobme. In addition to serving static pages from the React client build folder at the root directory, it also serves the JSON data that comprises the backend at the api directory using the following endpoints.

API Endpoints

Type Path (/api) Body Token Type Response
GET /employers -- -- List of Employers
POST /employers/register New Employer -- New Employer, token
POST /employers/login email, password -- Success, Token
GET /employers/profile -- Employer Employer
PUT /employers/profile Changes Employer Changes
PUT /employers/password oldPassword, newPassword Employer Employer
POST /exist email -- 1 - 0
GET /jobseekers -- -- List of jobseekers
POST /jobseekers/register New Jobseeker -- New Jobseeker, token
POST /jobseekers/login email, password -- Success, Token
GET /jobseekers/profile -- Jobseeker Jobseeker
PUT /jobseekers/profile Changes Jobseeker Changes
PUT /jobseekers/like/:seekerId jobId, match, superLike Employer Match
PUT /jobseekers/archive/:seekerId jobId, reverse Employer jobId, seekerId
GET /jobseekers/archived -- Employer Archived Seekers
GET /jobs -- Either Jobs
POST /jobs (New Job) Employer New Job
PUT /jobs/like/:jobId match, superLike Seeker Match
PUT /jobs/archive/:jobId reverse Seeker jobId
GET /jobs/matches -- Either Matched Jobs
GET /jobs/archived -- Seeker Archived Jobs
POST /billing total, cart, source Either Sucess/Error
GET /messages?partnerId&jobId -- Either Messages
GET /messages/conversations -- Either Messages (truncated)
POST /messages toId, title, body, matchedJob Either Message

Example From Client:

axios
  .post("https://jobitduder/herokuapp.com/api/employers/register", {
    email,
    password,
    companyName,
    companyUrl,
    description,
    industry
  })
  .then(response => {
    dispatch({ type: REGISTER_SUCCESS, employer: response.data });
  })
  .catch(err => {
    dispath({ type: REGISTER_ERROR, message: err.data });
  });

Route Details

Log-In

Register New Employer

Register New Seeker

Making Changes to Users

Charging for Services

Log-Out

Create a New Job

Like a Job

Like a Seeker for a Job

View Job Matches