add calendar module

This commit is contained in:
Roland Schneider
2025-11-20 22:08:17 +01:00
parent c28431e80c
commit 085605f85c
18 changed files with 789 additions and 137 deletions

View File

@@ -39,9 +39,114 @@ Content-Type: application/json
}
### GET
### GET request with parameter
GET {{apiBaseUrl}}/calendar/test?startDate=2011-10-05T14:48:00.000Z&endDate=2025-11-20T17:00:09.234Z
Accept: application/json
Authorization: Bearer {{auth_token}}
# curl -i http://httpbin.org/ip
GET http://httpbin.org/ip
###
### GET request with parameter
GET {{apiBaseUrl}}/calendar/events/1
Accept: application/json
Authorization: Bearer {{auth_token}}
### GET request with parameter
GET {{apiBaseUrl}}/calendar?startDate=2011-10-05T14:48:00.000Z&endDate=2025-12-20T17:00:09.234Z
Accept: application/json
Authorization: Bearer {{auth_token}}
### Post Creating a Single, Non-Recurring Event
POST {{apiBaseUrl}}/calendar/events
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"title": "Project Deadline Discussion",
"description": "Final review of the Q4 project deliverables.",
"startTime": "2025-11-28T14:00:00Z",
"endTime": "2025-11-28T15:30:00Z",
"timezone": "Europe/Berlin",
"isRecurring": false,
"eventTypeId": 1
}
### Creating a Recurring Event
POST {{apiBaseUrl}}/calendar/events
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"title": "Daily Team Stand-up",
"startTime": "2025-12-01T09:00:00Z",
"endTime": "2025-12-01T09:15:00Z",
"timezone": "Europe/Budapest",
"isRecurring": true,
"recurrenceRule": {
"frequency": "WEEKLY",
"interval": 1,
"byDay": "MO,TU,WE,TH,FR",
"count": 10
}
}
### Cancelling a Single Occurrence of a Recurring Event
POST {{apiBaseUrl}}/calendar/events/1/exceptions
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"originalStartTime": "2025-12-03T09:00:00Z",
"isCancelled": true
}
### Rescheduling/Modifying a Single Occurrence
POST {{apiBaseUrl}}/calendar/events/1/exceptions
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"originalStartTime": "2025-12-05T09:00:00Z",
"title": "Daily Stand-up - Special Demo",
"newStartTime": "2025-12-05T15:00:00Z",
"newEndTime": "2025-12-05T15:30:00Z"
}
### Rescheduling/Modifying a Single Occurrence
POST {{apiBaseUrl}}/calendar/events/1/exceptions
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"originalStartTime": "2025-12-05T09:00:00Z",
"title": "Daily Stand-up - Special Demo",
"newStartTime": "2025-12-05T15:00:00Z",
"newEndTime": "2025-12-05T15:30:00Z"
}
### Updating an Entire Event Series
PATCH {{apiBaseUrl}}/calendar/events/1
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{auth_token}}
{
"title": "Agile Team Sync"
}
### Updating an Entire Event Series
DELETE {{apiBaseUrl}}/calendar/events/1
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{auth_token}}