Get Single
GET/api/leaveapplication/23
Endpoint: Retrieve Leave Application Details
This endpoint allows users to retrieve the details of a specific leave application by its unique identifier.
Request
- Method: GET
- URL:
https://app.udyogx.in/api/leaveapplication/{id}
- Path Parameter:
id
(integer): The unique identifier of the leave application you wish to retrieve. In this example, the ID is23
.
Response
Upon a successful request, the response will contain the details of the leave application. The structure of the response typically includes:
id
: The unique identifier of the leave application.employeeId
: The ID of the employee who submitted the leave application.leaveType
: The type of leave requested (e.g., Sick Leave, Casual Leave).startDate
: The start date of the leave.endDate
: The end date of the leave.status
: The current status of the leave application (e.g., Approved, Pending, Rejected).reason
: The reason for the leave application.
Example Response Structure
{
"id": 23,
"employeeId": "12345",
"leaveType": "Sick Leave",
"startDate": "2023-10-01",
"endDate": "2023-10-05",
"status": "Approved",
"reason": "Medical reasons"
}
This endpoint is useful for users who need to check the status and details of their leave applications.
Responses
- 200