Skip to content

compensation create

Rohin Awale edited this page Jul 16, 2019 · 1 revision
METHOD ROUTES DESCRIPTION ALLOWED USERS
POST /v1/api/compensation/create allows users apply for leave All Authorized Users

body(application/json)

{
	"days":2,
	"leave_reason":"Worked on saturday and sunday during holidays"
}

response

{
    "status": true,
    "payload": {
        "user": 4,
        "reason": "Worked on saturday and sunday during holidays",
        "days": 2
    }
}

Note

  • user in response refers to the user id
Clone this wiki locally