Skip to main content

Get List

GET 

/api/employees

API Endpoint: Get Employees

This endpoint retrieves a list of employees from the UdyogX application. It is a GET request, which means it does not require a request body.

Request Format

  • Method: GET
  • URL: https://app.udyogx.in/api/employees
  • Request Body: None

Response Structure

The response will contain a JSON object with the following structure:

  • employees: An array of employee objects, where each object contains:
    • id: The unique identifier for the employee.
    • name: The 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.

Example Response

{
"employees": [
{
"id": "1",
"name": "John Doe",
"email": "john.doe@example.com",
"position": "Software Engineer",
"department": "Engineering"
},
{
"id": "2",
"name": "Jane Smith",
"email": "jane.smith@example.com",
"position": "Project Manager",
"department": "Management"
}
]
}

This endpoint is useful for retrieving employee data for various purposes, such as displaying employee lists in a user interface or for administrative tasks.

Responses