-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCronMonitoring_API.postman_collection.json
83 lines (83 loc) · 1.67 KB
/
CronMonitoring_API.postman_collection.json
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"info": {
"_postman_id": "6834601d-fa9b-4979-8011-604cbb54222d",
"name": "Cron Monitoring",
"description": "An API for managaging and scheduling time-based cronjobs",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Jobs",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{host}}/jobs",
"host": [
"{{host}}"
],
"path": [
"jobs"
]
},
"description": "Displays list of existing cronjobs"
},
"response": []
},
{
"name": "Job new",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"minutes\": \"*/11\",\n \"hours\": \"*\",\n \"days\": \"*\",\n \"month\": \"*\",\n \"week_day\": \"*\",\n \"location\": \"test_jobs/job1\",\n \"execution\": \"python3 index.py\",\n \"output\": \"cron_logs/cron.log\",\n \"error\": \"2>&1\"\n}"
},
"url": {
"raw": "{{host}}/job",
"host": [
"{{host}}"
],
"path": [
"job"
]
},
"description": "Creates a single cronjob"
},
"response": []
},
{
"name": "Job delete",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"id\":\"\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/job",
"host": [
"{{host}}"
],
"path": [
"job"
]
},
"description": "Deletes a single cronjob"
},
"response": []
}
]
}