StartNG 2020 Final project.
start-connect is a web app built to connect startNG finalist with prospective employers.
API live link: https://fast-meadow-93023.herokuapp.com/
Register as an intern
-
URL /intern/signup
-
Method:
POST
-
URL Params none
-
URL Body
Required:internID = string
email = string
password = string
-
Success Response:
- code: 200
content:{intern registered successfully}
- code: 200
-
Error Response:
- code: 400
content:{"All fields are required" or "intern with email already exists}
- code: 400
Register as an employer
-
URL /employer/signup
-
Method:
POST
-
URL Params none
-
URL Body
Required:employerName = string
email = string
password = string
-
Success Response:
- code: 200
content:{Employer registered successfully}
- code: 200
-
Error Response:
- code: 400
content:{"All fields are required" or "employer with email already exists}
- code: 400
Login an intern
-
URL /intern/login
-
Method:
POST
-
URL Params none
-
URL Body
Required:internID = string
email = string
password = string
-
Success Response:
- code: 200
content:data:{message: "login successful", email: "intern email","token": "token"}
- code: 200
-
Error Response:
- code: 403 Forbidden / 404
content:( 404: "User not found, please provide valid details". 403: "Incorrect password.")
- code: 403 Forbidden / 404
Login an employer
-
URL /employer/login
-
Method:
POST
-
URL Params none
-
URL Body
Required:email = string
password = string
-
Success Response:
- code: 200
content:data: {message: "login successful", email: "employer email","token": "token"}
- code: 200
-
Error Response:
- code: 403 Forbidden / 404
content:( 404: "Employer not found, please provide valid details". 403: "Incorrect password.")
- code: 403 Forbidden / 404
Update intern profile
-
URL /intern
-
Method:
PATCH
-
URL Params none
-
URL Body
Required:email = intern email
firstName = string
lastName = string
skill_sets = string, string, ...
-
Success Response:
- code: 200
content:{message: "intern updated successfully", data: intern details}
- code: 200
-
Error Response:
- code: 403 Forbidden
content:(err message)
- code: 403 Forbidden
Post a job (only employers can post jobs)
- URL /job
- Method:
POST
- Headers:
Required:Authorization: Bearer "token"
- URL Body
Required:
job_title = string
job_description = string
role_focus = string
enum: Frontend/Backend/Full-stackposition_type = string
// enum: Full-time/Remote/Contractskill_sets = string
e.g js, html, cssjob_location = string
job_status = string
enum: open/closecompany_name = string
company_website = string
company_description = string
- Success Response:
- code: 200
content:{message: "job successfully posted!", data: {job details}}
- code: 200
- Error Response:
- code: 401 Unauthorized/ 400/ 423
content:401: {message: auth failed}, 400: {message: All necessary fields are required}, 423: {message: A job with title already exists}
- code: 401 Unauthorized/ 400/ 423
- URL /marketplace
- Method:
GET
- URL Header none
- Success Response:
- code: 200
content:{status: "success", data: [{interns: [], employers:[], jobs: []}] }
- code: 200