Get Single
GET/api/employee/69
Get Employee Details
This endpoint retrieves detailed information about a specific employee identified by their unique ID.
Request
- Method: GET
- URL:
https://app.udyogx.in/api/employee/{id}
Path Parameters
id
(required): The unique identifier of the employee. In this example, the ID is69
.
Response
The response will contain a JSON object with the details of the employee. The structure of the response typically includes the following fields:
employeeId
: The unique ID of the employee.name
: The full name of the employee.email
: The email address of the employee.position
: The job title of the employee.department
: The department in which the employee works.contactNumber
: The contact number of the employee.dateOfJoining
: The date when the employee joined the organization.
Example Response
{
"employeeId": 69,
"name": "John Doe",
"email": "johndoe@example.com",
"position": "Software Engineer",
"department": "IT",
"contactNumber": "+1234567890",
"dateOfJoining": "2020-01-15"
}
This endpoint is useful for fetching employee-specific data for display or processing within applications that require employee management functionalities.
Responses
- 200