Durch die Nutzung unserer Website stimmen Sie der Verwendung von Cookies zu, die timesaver nutzt zur Messung seiner eigenen Werbeaktivitäten und - wenn Sie wünschen - sich automatisch einzuloggen/eingeloggt zu bleiben.
Weitere Informationen / Richtlinien

Holiday notes

Holiday notes REST API


URL

https://timesaver.ch/app/rest/mandators/<mandator id>/holidayNotes[/holiday note id]

List all holiday notes

This will return all of the holiday notes of the mandator with id 59

Request

GET https://timesaver.ch/app/rest/mandators/59/holidayNotes
Authorization: Basic aW5mb0B0aW1lc2F2ZXIuY2g6czNjcjN0
Accept: application/json

Response

Headers

ETag: MTUyNjQ2ODI3MDk4MToy
Cache-Control: private, max-age=120
Content-Type: application/json;charset=UTF-8

Body

[
  {
    "class": "timecloud.HolidayNote",
    "id": 221,
    "description": "Waldfest 2017",
    "endDate": "2017-08-30T22:00:00Z",
    "erfDate": "2017-02-16T16:56:30Z",
    "erfUser": 4,
    "mandator": {
      "class": "timecloud.Mandator",
      "id": 59
    },
    "mutDate": "2017-02-16T16:56:30Z",
    "mutUser": 4,
    "startDate": "2017-08-30T22:00:00Z"
  },
  {
    "class": "timecloud.HolidayNote",
    "id": 499,
    "description": "Waldfest 2018",
    "endDate": "2018-09-01T22:00:00Z",
    "erfDate": "2018-05-16T10:57:50Z",
    "erfUser": 4,
    "mandator": {
      "class": "timecloud.Mandator",
      "id": 59
    },
    "mutDate": "2018-05-16T10:57:50Z",
    "mutUser": 4,
    "startDate": "2018-08-26T22:00:00Z"
  }
]

Search for holiday notes

This will return all holiday notes that have a start date greater or equals than the first of january 2018, GMT+2

Request

GET https://timesaver.ch/app/rest/mandators/59/holidayNotes?filter.startDate.begin=2018-01-01
Authorization: Basic aW5mb0B0aW1lc2F2ZXIuY2g6czNjcjN0
Accept: application/json

Response

Headers

ETag: MTUyNjQ2ODI3MDk4MTox
Cache-Control: private, max-age=120
Content-Type: application/json;charset=UTF-8

Body

[
    {
        "class": "timecloud.HolidayNote",
        "id": 499,
        "description": "Waldfest 2018",
        "endDate": "2018-09-01T22:00:00Z",
        "erfDate": "2018-05-16T10:57:50Z",
        "erfUser": 4,
        "mandator": {
            "class": "timecloud.Mandator",
            "id": 59
        },
        "mutDate": "2018-05-16T10:57:50Z",
        "mutUser": 4,
        "startDate": "2018-08-26T22:00:00Z"
    }
]

Get a holiday note by Id

Request

GET https://timesaver.ch/app/rest/mandators/59/holidayNotes/499
Authorization: Basic aW5mb0B0aW1lc2F2ZXIuY2g6czNjcjN0
Accept: application/json

Response

Headers

ETag: 0
Cache-Control: private, max-age=120
Content-Type: application/json;charset=UTF-8

Body

{
    "class": "timecloud.HolidayNote",
    "id": 499,
    "description": "Waldfest 2018",
    "endDate": "2018-09-01T22:00:00Z",
    "erfDate": "2018-05-16T10:57:50Z",
    "erfUser": 4,
    "mandator": {
        "class": "timecloud.Mandator",
        "id": 59
    },
    "mutDate": "2018-05-16T10:57:50Z",
    "mutUser": 4,
    "startDate": "2018-08-26T22:00:00Z"
}