Endpoints:
Endpoint: /api/employee
All endpoints for employee related operations start with the with pattern.
Endpoint: /api/employee/create
Method: POST
Data:
{
"empName": "<empName>",
"deptId": "<deptId>"
}
OR
{
"empName": "<empName>",
"deptName": "<deptName>"
}
Endpoint: /api/employee/find?empId=<empId>
Method: GET
Endpoint: /api/employee/update
Method: POST
Data:
{
"empId": "<empId>",
"deptId": "<deptId>"
}
OR
{
"empId": "<empId>",
"deptName": "<deptName>"
}
Endpoint: /api/employee/detele/{empId}
Method: DELETE
Endpoint: /api/employee/all
Method: GET
Endpoint: /api/dept
All endpoints to perform operations on departments start with this pattern.
Endpoint: /api/dept/create
Method: POST
Data:
{
"deptName": "<deptName>"
}
Endpoint: /api/dept/find?deptId=<deptId>
Method: GET
Endpoint: /api/dept/update
Method: POST
Data:
{
"deptId": "<deptId>",
"deptName": "<deptName>"
}
Endpoint: /api/dept/detele/{deptId}
Method: DELETE
Endpoint: /api/dept/getEmployees?deptId=<deptId>
Method: GET
Endpoint: /api/dept/all
Method: GET