forked from kataras/iris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postman_collection.json
137 lines (137 loc) · 2.71 KB
/
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"info": {
"_postman_id": "8b135d95-ea8c-4dd5-a127-4b83cb735504",
"name": "iris-kafka-postman",
"description": "Postman API Requests for Iris + Kafka example",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Create Topic",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"topic\":\"mytopic\",\r\n \"partitions\": 1,\r\n \"replication\":1\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/v1/topics",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"v1",
"topics"
]
},
"description": "Create a new kafka topic"
},
"response": []
},
{
"name": "List all Topics",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/v1/topics",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"v1",
"topics"
]
},
"description": "List all topics"
},
"response": []
},
{
"name": "Store data to Topic",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"username\":\"kataras\",\r\n \"repo\":\"iris\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/v1/topics/mytopic/produce?key=mykey",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"v1",
"topics",
"mytopic",
"produce"
],
"query": [
{
"key": "key",
"value": "mykey"
}
]
},
"description": "Produce some data to a Topic"
},
"response": []
},
{
"name": "(Open in Browser) Consume data from a Topic",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/v1/topics/mytopic/consume?partition=0&offset=0",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"v1",
"topics",
"mytopic",
"consume"
],
"query": [
{
"key": "partition",
"value": "0"
},
{
"key": "offset",
"value": "0"
}
]
},
"description": "Note that, you have to open this one at your browser. Postman does not support SSE testing, see: https://github.com/postmanlabs/postman-app-support/issues/6682"
},
"response": []
}
],
"protocolProfileBehavior": {}
}