Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Type

Description

schemeId

int

scheme ID

Expand
titleExample

Path

title
Code Block
Path
GET {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/1/holiday
Response
title
Code Block
Response
[
    {
        "id": 1,
        "date": "1970-12-25",
        "yearly": true,
        "description": "Christmas",
        "holidaySchemeId": 1
    },
    {
        "id": 2,
        "date": "1970-01-01",
        "yearly": true,
        "description": "New year",
        "holidaySchemeId": 1
    }
]

...

Name

Type

Description

date

String

Holiday date. ISO 8601 format.

yearly

Boolean

true - holiday is repeated yearly,

false - holiday occurs one time, on selected date

description

String

Holiday description

Expand
titleExample
Path
Code Block
titlePath
POST {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/1/holiday
Body
Code Block
titleBody
{
   "date": "2018-12-25",
    "yearly": true,
    "description": "Christmas"
}
Response
Response
Code Block
title
{
	"id": 1,
    "date": "2018-12-25",
    "yearly": true,
    "description": "Christmas",
	"holidaySchemeId": 1	
}

...

Name

Type

Description

date

String

Holiday date. ISO 8601 format.

yearly

Boolean

true - holiday is repeated yearly,

false - holiday occurs one time, on selected date

description

String

Holiday description

Expand
titleExample
Path
Path
Code Block
title
PATCH {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/1/holiday/1
Body
Code Block
titleBody
  {
    "date": "2019-01-01",
    "yearly": true,
    "description": "New year"
  }
Response
Code Block
titleResponse
  {
	"id": 1,
    "date": "2019-01-01",
    "yearly": true,
    "description": "New year",
	"holidaySchemeId": 1
  }

...

Name

Type

Description

schemeId

int

scheme ID

holidayId

int

holiday ID

Expand
titleExample
Path
Path
Code Block
title
DELETE {jira_baseurl}/rest/vacation-manager/1.0/holiday-scheme/1/holiday/1