Overview
Vacation Manager's REST API provides team API which allows you to obtain:
- create new team
- add member to team
- update team
- delete team
- remove member from team
- get teams list
- get single team
- get team members
Methods:
GET
...
Table of Contents | ||||
---|---|---|---|---|
|
GET
Get teams list
Get list of all teams.
...
Path
...
...
GET {jira_baseurl}/rest/vacation-manager/1.0/team
...
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
GET {jira_baseurl}/rest/vacation-manager/1.0/team |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
...
Expand | ||
---|---|---|
|
...
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Get single team
Get information about existing team members.
...
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
GET {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId} Permissions
|
Responses:
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
...
Responses
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
title | 500 | |
---|---|---|
Expand | ||
|
...
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
|
Get team members
Get information about existing team.
...
Path
...
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
Code Block | ||
GET {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId}/member |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
...
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
POST
...
...
title | Create team |
---|
Creates new team.
Path
Code Block |
---|
POST {jira_baseurl}/rest/vacation-manager/1.0/team |
...
POST
Create team
Creates new team.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Name | Type | Description |
---|---|---|
name | String | Team name, must be unique for each team |
description | String (Optional) | Team description |
Code Block | ||
POST {jira_baseurl}/rest/vacation-manager/1.0/team |
Responses:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
...
JSON body fields
Name | Type | Description |
---|---|---|
name | String | Team name, must be unique for each team |
description | String (Optional) | Team description |
Expand | ||
---|---|---|
|
...
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Path
Body
Response
|
...
|
Add member to team
Add member to team.
...
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
POST {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId}/member Permissions |
Responses:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team id |
JSON body fields
Name | Type | Description |
---|---|---|
type | MemberType | Type of member |
name | String | Name of the member you want to add to the team |
role | MemberRole | Role for member |
MemberType
Name | Type | Description |
---|---|---|
USER | Enum | User type |
GROUP | Enum | Group type |
MemberRole
Name | Type | Description |
---|---|---|
USER |
...
Enum
...
User role for member
...
Enum |
...
Responses
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
User role for member | ||
SUPERVISOR | Enum | Supervisor role for member |
Expand | ||
---|---|---|
| ||
Path
|
...
title | Path |
---|
Add user to teamBody
|
...
...
Response
|
...
Add group to teamBody
|
...
Response
|
...
|
...
PATCH
...
title | Update team |
---|
Update existing team.
...
|
...
PATCH
Update team
Update existing team.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
PATCH {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId} Permissions |
Responses:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
JSON body fields
Name | Type | Description |
---|---|---|
name | String | Team name, must be unique |
...
description
...
String (Optional)
...
Team description
Responses
...
Status | ||||
---|---|---|---|---|
|
...
Status | ||||
---|---|---|---|---|
|
...
description | String (Optional) | Team description |
Expand | ||
---|---|---|
| ||
Path
|
...
Body
|
...
Request
|
...
title | Request |
---|
|
...
DELETE
...
title | Delete team |
---|
Delete existing team.
...
|
...
DELETE
Delete team
Delete existing team.
Permissions:
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId} Permissions |
Responses:
Status | |||
---|---|---|---|
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | ||
---|---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
Expand | |||
---|---|---|---|
| Responses
| ||
statusRequest | |||
colour | Green | ||
title | 204 |
Code Block |
---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/1 |
Remove member from team
Remove member from team.
Permissions:
Status | |
---|---|
|
...
|
...
|
Status | |||
---|---|---|---|
|
...
|
...
...
Status |
---|
...
|
...
|
...
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/1
...
title | Remove member from team |
---|
Remove member from team.
...
|
Status | ||||
---|---|---|---|---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/{teamId}/member Permissions
|
Responses:
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Status | |
---|---|
|
...
|
...
|
Path params
Name | Type | Description |
---|---|---|
teamId | int | Team ID |
JSON body fields
Name | Type | Description |
---|---|---|
type | String | Type of member to remove
|
name | String | Name of the member you want to remove from the team |
role | String | Role for member to remove
|
Status | ||||||
---|---|---|---|---|---|---|
colour | Green | |||||
title | 204 |
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Example
title | Example |
---|
title | Path |
---|
title | Example |
---|
Path
Code Block |
---|
DELETE {jira_baseurl}/rest/vacation-manager/1.0/team/1/member |
Body
Code Block | title | Body
---|
{
"type":"GROUP",
"name":"users",
"role":"USER"
} |