-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapidoc.http
89 lines (72 loc) · 1.85 KB
/
apidoc.http
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
84
85
86
87
88
89
POST http://localhost:8080/api/v1/job
Content-Type: application/json
{
"name": "testing",
"tasks": [
{
"name": "hallo-world",
"image": "debian:latest",
"depends": [],
"cmd": [
"sh",
"-c",
"echo $MESSAGE >> /task-output-foo.txt"
],
"env": [
{
"name": "MESSAGE",
"value": "Hallo world"
}
],
"outputs": [
{
"name": "foo-output",
"path": "/task-output-foo.txt"
}
]
},
{
"name": "replace-letter-a",
"image": "debian:latest",
"depends": [
"hallo-world"
],
"cmd": [
"sh",
"-c",
"cat /task-input.txt | sed 's/a/e/g' > /task-output-replace-letter-a.txt"
],
"env": [],
"inputs": [
{
"from": "foo-output",
"path": "/task-input.txt"
}
],
"outputs": [
{
"name": "replace-letter-a-output",
"path": "/task-output-replace-letter-a.txt"
}
]
}
]
}
###
GET http://localhost:8080/api/v1/job/59
###
GET http://localhost:8080/api/v1/job
###
GET http://localhost:8080/api/v1/artefact/21/replace-letter-a-output
###
POST http://localhost:8080/api/v1/secret/test-key
Content-Type: application/json
"test-value"
###
DELETE http://localhost:8080/api/v1/secret/test-key
###
PUT http://localhost:8080/api/v1/secret/test-key
Content-Type: application/json
"new-test-value"
###
GET ws://localhost:8080/api/v1/scheduler/ws