-
Notifications
You must be signed in to change notification settings - Fork 27
/
testRest.http
60 lines (40 loc) · 1.14 KB
/
testRest.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
### Add net_device to emitters
POST http://localhost:7482/emitters
Content-Type: application/json
{
"name": "net_device",
"locale": "us",
"num": 5,
"preload": 0,
"valueTemplate": "net_device",
"output": "http",
"keyTemplate": "{{uuid}}",
"outputTemplate": "{{.V}}\n"
}
### Add malformed json
POST http://localhost:7482/emitters
Content-Type: application/json
{
"name" "net_device",
"locale": "us",
"num": 5,
"preload": 0,
"valueTemplate": "net_device",
"output": "http",
"keyTemplate": "null",
"outputTemplate": "{{.V}}\n"
}
### Get all emitters
GET http://localhost:7482/emitters
### Run predefined shoe emitter
GET http://localhost:7482/emitters/shoe
### Run predefined shoe_customer emitter
GET http://localhost:7482/emitters/shoe_customer
### Run predefined shoe_order emitter
GET http://localhost:7482/emitters/shoe_order
### Run predefined shoe_clickstream emitter
GET http://localhost:7482/emitters/shoe_clickstream
### Run net_device emitter
GET http://localhost:7482/emitters/net_device
### Run user emitter
GET http://localhost:7482/emitters/user