git clone https://github.com/gaonkarBhai/Job-Api.git
cd Job-Api
Run with npm
npm i
npm start
API endpoints related to user authentication.
Method | Endpoint | Description |
---|---|---|
POST | /auth/register | Register a new user |
POST | /auth/login | Log in with user |
Create a new user account.
- Method: POST
- Endpoint:
/auth/register
The request body should be a JSON object with the following properties:
Field | Type | Description |
---|---|---|
name | string | User's name |
string | User's email address | |
password | string | User's password |
Log in with user credentials.
- Method: POST
- Endpoint:
/auth/login
The request body should be a JSON object with the following properties:
Field | Type | Description |
---|---|---|
string | User's email address | |
password | string | User's password |
Endpoint | Method | Description |
---|---|---|
/job/:id |
GET | Get a specific job by ID |
/job |
GET | Get all jobs |
/job |
POST | Create a new job |
/job/:id |
PATCH | Update a job by ID |
/job/:id |
DELETE | Delete a job by ID |