anilhazar / hr-be-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create LeaveRequest Endpoint

anilhazar opened this issue · comments

Create LeaveRequest Endpoint

Service Description: This service creates a new leave request record.

Endpoint:

  • HTTP Method: POST
  • Endpoint: /leave-request

Request Body:

{
  "requestType": "Vacation",
  "startDate": "2024-02-17",
  "endDate": "2024-02-19",
  "employeeId": 1234
} 

Response:

Status Code: 200 (OK) if the leave request is successfully created.