-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathpipeline.http
More file actions
47 lines (36 loc) · 833 Bytes
/
pipeline.http
File metadata and controls
47 lines (36 loc) · 833 Bytes
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
@baseURL = http://localhost:9000/api/pipelines
### Get all pipelines
GET {{baseURL}}/configs HTTP/1.1
### Get pipeline x
@pipelineid = 3
GET {{baseURL}}/configs/{{pipelineid}} HTTP/1.1
### Create a pipeline
POST {{baseURL}}/configs HTTP/1.1
Content-Type: application/json
{
"datasourceId": 123,
"transformation": {
"func": "data.test = 'abc'; return data;"
},
"metadata": {
"author": "icke",
"license": "none",
"displayName": "exampleRequest"
}
}
@pipelineId = 11
### Update a pipeline
PUT {{baseURL}}/configs/{{pipelineId}} HTTP/1.1
Content-Type: application/json
{
"datasourceId": 999,
"transformation": {
"func": "data.test = 'abc'; return data;"
},
"metadata": {
"author": "icke",
"license": "none"
}
}
### Delete all pipelines
DELETE {{baseURL}}/configs/ HTTP/1.1