/
[REST 1.1] REST API usage example in VacMan flow
[REST 1.1] REST API usage example in VacMan flow
This page provides example of Vacation Manager REST API usage.
1. Do initial setup of Vacation Manager
User: jira administrator
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/initial-setup
2. Create first team
User: HR
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/team
3. Add supervisor to team
User: HR
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/team/1/member
4. Add users to team
User: HR
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/team/1/member
5. Add new holiday
User: HR
5.1. Get list of holiday schemes to obtain id
Request
GET {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme
5.2. Add new holiday
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme
6. Add vacation definition to user
User: HR
[REST 1.1] Vacation definitions
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/vacation-definition
7. Create vacation document
User: john jira user
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/vacation-document
8. Send vacation document to supervisor
User: john jira user
8.1. Get list of actions for vacation document
Request
GET {jira_baseurl}/rest/vacation-manager/1.0/vacation-document/VACMAN-1/actions
8.2. Change status of vacation document
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/vacation-document/status
9. Approve vacation document
User: supervisor
9.1. Get list of actions for vacation document
Request
GET {jira_baseurl}/rest/vacation-manager/1.0/vacation-document/VACMAN-1/actions
9.2. Change status of vacation document
Request
POST {jira_baseurl}/rest/vacation-manager/1.0/vacation-document/status
, multiple selections available,
Related content
[REST 1.1] Teams
[REST 1.1] Teams
Read with this
[REST 1.1] Initial setup
[REST 1.1] Initial setup
Read with this
[REST 1.1] Vacation types
[REST 1.1] Vacation types
Read with this
Feel free to tell us what topic should be covered: vacationmanager@psc-software.atlassian.net