Skip to content

vishal-ramesh2/EmployeeAPIBootcamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee API for Freshworks Bootcamp

Endpoints:

Employee Endpoint

Endpoint: /api/employee

All endpoints for employee related operations start with the with pattern.

Creating an employee

Endpoint: /api/employee/create
Method: POST
Data:

{
  "empName": "<empName>",
  "deptId": "<deptId>"
}

OR

{
  "empName": "<empName>",
  "deptName": "<deptName>"
}

Finding an Employee

Endpoint: /api/employee/find?empId=<empId>
Method: GET

Updating an Employee

Endpoint: /api/employee/update
Method: POST
Data:

{
  "empId": "<empId>",
  "deptId": "<deptId>"
}

OR

{
  "empId": "<empId>",
  "deptName": "<deptName>"
}

Deleting an Employee

Endpoint: /api/employee/detele/{empId}
Method: DELETE

Getting all Employees

Endpoint: /api/employee/all
Method: GET

Department Endpoint

Endpoint: /api/dept
All endpoints to perform operations on departments start with this pattern.

Creating a Department

Endpoint: /api/dept/create
Method: POST
Data:

{
  "deptName": "<deptName>"
}

Finding a Department

Endpoint: /api/dept/find?deptId=<deptId>
Method: GET

Updating a Department

Endpoint: /api/dept/update
Method: POST
Data:

{
  "deptId": "<deptId>",
  "deptName": "<deptName>"
}

Deleting a Department

Endpoint: /api/dept/detele/{deptId}
Method: DELETE

Getting all employees in a Department

Endpoint: /api/dept/getEmployees?deptId=<deptId>
Method: GET

Getting all departments

Endpoint: /api/dept/all
Method: GET

About

Employee API for bootcamp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages