-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathScheduleWebApp.http
More file actions
54 lines (44 loc) · 1.51 KB
/
ScheduleWebApp.http
File metadata and controls
54 lines (44 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
### Variables
@baseUrl = http://localhost:8080
@scheduleId = schedule-123
### Create a new schedule
# @name createSchedule
POST {{baseUrl}}/schedules
Content-Type: application/json
{
"id": "{{scheduleId}}",
"input": "{{scheduleId}}",
"orchestrationName": "CacheClearingOrchestrator",
"interval": "00:00:10"
}
### Get a specific schedule by ID
# Note: This endpoint can be used to verify the schedule was created
# The ID in the URL should match the id used in create request
GET {{baseUrl}}/schedules/{{scheduleId}}
### List all schedules
GET {{baseUrl}}/schedules/list
### Update an existing schedule
PUT {{baseUrl}}/schedules/{{scheduleId}}
Content-Type: application/json
{
"orchestrationName": "CacheClearingOrchestrator",
"interval": "00:00:20"
}
### Pause a schedule
POST {{baseUrl}}/schedules/{{scheduleId}}/pause
### Resume a schedule
POST {{baseUrl}}/schedules/{{scheduleId}}/resume
### Delete a schedule
DELETE {{baseUrl}}/schedules/{{scheduleId}}
### Tips:
# - Replace the baseUrl variable if your application runs on a different port
# - The scheduleId variable can be changed to test different schedule instances
# - Time intervals use TimeSpan format (hh:mm:ss)
# Examples:
# - "00:00:10" = 10 seconds
# - "00:30:00" = 30 minutes
# - "01:00:00" = 1 hour
# - "24:00:00" = 1 day
# - Dates are in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)
# - You can use the REST Client extension in VS Code to execute these requests
# - The @name directive allows referencing the response in subsequent requests