@@ -21,7 +21,7 @@ Assuming you have prepared a pipeline configuration file `pipeline.yaml`, use th
21
21
22
22
``` shell
23
23
# # Upload the pipeline file. 'test' is the name of the pipeline
24
- curl -X " POST" " http://localhost:4000/v1/events/ pipelines/test" \
24
+ curl -X " POST" " http://localhost:4000/v1/pipelines/test" \
25
25
-H " Authorization: Basic {{authentication}}" \
26
26
27
27
```
@@ -34,7 +34,7 @@ You can use the following HTTP interface to delete a pipeline:
34
34
35
35
``` shell
36
36
# # 'test' is the name of the pipeline
37
- curl -X " DELETE" " http://localhost:4000/v1/events/ pipelines/test?version=2024-06-27%2012%3A02%3A34.257312110Z" \
37
+ curl -X " DELETE" " http://localhost:4000/v1/pipelines/test?version=2024-06-27%2012%3A02%3A34.257312110Z" \
38
38
-H " Authorization: Basic {{authentication}}"
39
39
```
40
40
@@ -46,13 +46,13 @@ Querying a pipeline with a name through HTTP interface as follow:
46
46
47
47
``` shell
48
48
# # 'test' is the name of the pipeline, it will return a pipeline with latest version if the pipeline named `test` exists.
49
- curl " http://localhost:4000/v1/events/ pipelines/test" \
49
+ curl " http://localhost:4000/v1/pipelines/test" \
50
50
-H " Authorization: Basic {{authentication}}"
51
51
```
52
52
53
53
``` shell
54
54
# # with the version parameter, it will return the specify version pipeline.
55
- curl " http://localhost:4000/v1/events/ pipelines/test?version=2025-04-01%2006%3A58%3A31.335251882%2B0000" \
55
+ curl " http://localhost:4000/v1/pipelines/test?version=2025-04-01%2006%3A58%3A31.335251882%2B0000" \
56
56
-H " Authorization: Basic {{authentication}}"
57
57
```
58
58
@@ -192,7 +192,7 @@ You may encounter errors when creating a Pipeline. For example, when creating a
192
192
193
193
194
194
``` bash
195
- curl -X " POST" " http://localhost:4000/v1/events/ pipelines/test" \
195
+ curl -X " POST" " http://localhost:4000/v1/pipelines/test" \
196
196
-H " Content-Type: application/x-yaml" \
197
197
-H " Authorization: Basic {{authentication}}" \
198
198
-d $' processors:
@@ -228,7 +228,7 @@ The pipeline configuration contains an error. The `gsub` Processor expects the `
228
228
Therefore, We need to modify the configuration of the `gsub` Processor and change the value of the `replacement` field to a string type.
229
229
230
230
```bash
231
- curl -X "POST" "http://localhost:4000/v1/events/ pipelines/test" \
231
+ curl -X "POST" "http://localhost:4000/v1/pipelines/test" \
232
232
-H "Content-Type: application/x-yaml" \
233
233
-H "Authorization: Basic {{authentication}}" \
234
234
-d $' processors:
@@ -263,7 +263,7 @@ We can test the Pipeline using the `dryrun` interface. We will test it with erro
263
263
264
264
265
265
``` bash
266
- curl -X " POST" " http://localhost:4000/v1/events/ pipelines/dryrun?pipeline_name=test" \
266
+ curl -X " POST" " http://localhost:4000/v1/pipelines/dryrun?pipeline_name=test" \
267
267
-H " Content-Type: application/json" \
268
268
-H " Authorization: Basic {{authentication}}" \
269
269
-d $' {"message": 1998.08,"time":"2024-05-25 20:16:37.217"}'
@@ -275,7 +275,7 @@ The output indicates that the pipeline processing failed because the `gsub` Proc
275
275
Let's change the value of the message field to a string type and test the pipeline again.
276
276
277
277
``` bash
278
- curl -X " POST" " http://localhost:4000/v1/events/ pipelines/dryrun?pipeline_name=test" \
278
+ curl -X " POST" " http://localhost:4000/v1/pipelines/dryrun?pipeline_name=test" \
279
279
-H " Content-Type: application/json" \
280
280
-H " Authorization: Basic {{authentication}}" \
281
281
-d $' {"message": "1998.08","time":"2024-05-25 20:16:37.217"}'
0 commit comments