WP Manifestindependent plugin directory
manifest / integrations / emp_leave_custom_rest_api_plugin

emp_leave_custom_rest_api_plugin

for creating this plugin for the handle the employees leave

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/het-agravat0608/emp_leave_custom_rest_api_plugin/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

emp_leave_custom_rest_api

for the check in postman

get method

//for the check get method in postman select the GET method with this url http://localhost:10004/wp-json/leave/v1/requests with none and click send button

post method

//for the check POST method in postman select the POST method with this url http://localhost:10004/wp-json/leave/v1/requests with body->raw->json and click send button

id specific get deatails

//http://localhost:10004/wp-json/leave/v1/requests/2 (2 is a id)

put method check in postman

http://localhost:10004/wp-json/leave/v1/requests/1 body->raw->json and click send button

{ "name": "Het", "leave_type": "casual", "from_date": "2026-08-29", "to_date": "2026-09-02", "reason": "Going to hometown", "status": "approved" }

patch method check in postman

http://localhost:10004/wp-json/leave/v1/requests/1 with body->raw->json and click send button (same as PUT but for partial update)

{ "status": "rejected" }

delete method in postman

http://localhost:10004/wp-json/leave/v1/requests/2 and click send button