153 lines
3.4 KiB
HTTP
153 lines
3.4 KiB
HTTP
POST {{apiBaseUrl}}/auth/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "admin",
|
|
"password": "123456"
|
|
}
|
|
|
|
> {% client.global.set("auth_token", response.body.accessToken); %}
|
|
|
|
|
|
### GET request with parameter
|
|
GET {{apiBaseUrl}}/users
|
|
Accept: application/json
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
### GET request with parameter
|
|
POST {{apiBaseUrl}}/auth/logout
|
|
Accept: application/json
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
|
|
|
|
### GET request with parameter
|
|
GET {{apiBaseUrl}}/products
|
|
Accept: application/json
|
|
|
|
### Post
|
|
POST {{apiBaseUrl}}/products
|
|
Accept: application/json
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"name": "p22",
|
|
"price": 3,
|
|
"is_available": true
|
|
}
|
|
|
|
|
|
### 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}}
|
|
|
|
|
|
### 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}}
|