Jobbee API

Jobbee API is a backend RESTful API that is build in Node.js that include features like: jobs, users, authentication etc.

Jobs 8

All Requests related to jobs. Like: Create, Read, Update, Delete, Apply to Job etc

Description

Get all jobs that are stored in Database.

Query
KeyValueDescription
positions2
positions10
Description

Create and add job to database. User must be authenticated and must be employeer.

Headers
KeyValueDescription
Content-Typeapplication/json
AuthorizationBearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlNjI0NjQ3MDhlNzk5NjhkYzE0NmY5MyIsImlhdCI6MTU4MzUwMjkxMCwiZXhwIjoxNTg0MTA3NzEwfQ.LKCBYzVW-6B3EzuYANcFIlraFSQwdQ-Tob3aooC7w2s
Body
{ "title": "Node Developer", "description": "Must be a full-stack developer, able to implement everything in a MEAN or MERN stack paradigm (MongoDB, Express, Angular and/or React, and Node.js).", "email": "employeer1@gmail.com", "address": "651 Rr 2, Oquawka, IL, 61469", "company": "Knack Ltd", "industry": [ "Information Technology" ], "jobType": "Permanent", "minEducation": "Bachelors", "positions": 2, "experience": "No Experience", "salary": "155000" }
Description

Get all jobs with specific distance or radius by providing zip code.

Headers
KeyValueDescription
Content-Typeapplication/json
Description

Update a job in database using ID.

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "title": "Ruby on Rails Developer Software Engineer" }
Description

Apply to any by uploading resume.

Body
KeyValueDescription
file

Authentication 5

All routes realated to authentication like: register a new user, login in user, password reset etc

Description

Login user with email and password

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "email" : "e@gmail.com", "password" : "temp1234" }
Description

Register user with email, password, name and role. Encypted password will be saved in database.

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "name" : "Ghulam Abbas", "email" : "e@gmail.com", "password" : "temp1234", "role" : "employeer" }
Description

Send password reset email with token and expire time

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "email" : "u@gmail.com" }
Description

Reset new password of that account.

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "password" : "temp12345" }
Description

Logout user from api and also expires the cookie.

Users 8

All routes realated to User.

Description

Gives data of currently logged in user.

Headers
KeyValueDescription
Content-Typeapplication/json
Description

Change the currently logged in user password.

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "currentPassword" : "temp1234", "newPassword" : "temp12345" }
Description

Update the currently logged in user data like: email, name

Headers
KeyValueDescription
Content-Typeapplication/json
Body
{ "name" : "Ghulam", "email" : "e1@gmail.com" }
Description

Delete currently logged in user from that database with it’s files.

Headers
KeyValueDescription
Content-Typeapplication/json
Description

Show all the jobs in which the currently logged in user has applied.

Description

Gives all jobs that are created by currently logged in employeer or admin.

Description

Show all the users. Only accessible by admins.

Description

Delete user or employeer. Only accessible by admins.