-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequests.http
More file actions
95 lines (81 loc) · 2.16 KB
/
requests.http
File metadata and controls
95 lines (81 loc) · 2.16 KB
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
### Status
GET {{baseUrl}}/api/v1/offsets/status
Accept: application/json
### Spring MVC mappings
GET {{baseUrl}}/actuator/mappings
Accept: application/json
### Refresh offset-sync index from Kafka
POST {{baseUrl}}/api/v1/offsets/refresh
Accept: application/json
### List loaded offset syncs
GET {{baseUrl}}/api/v1/offsets/syncs
Accept: application/json
### List loaded offset syncs for one topic partition
GET {{baseUrl}}/api/v1/offsets/syncs?topic={{topic}}&partition={{partition}}
Accept: application/json
### Translate source offset with query parameters
GET {{baseUrl}}/api/v1/offsets/translate?topic={{topic}}&partition={{partition}}&offset={{offset}}
Accept: application/json
### Translate source offset from latest Kafka offset-syncs without cache
GET {{baseUrl}}/api/v1/offsets/translate/latest?topic={{topic}}&partition={{partition}}&offset={{offset}}
Accept: application/json
### Translate source offset with JSON body
POST {{baseUrl}}/api/v1/offsets/translate/latest
Content-Type: application/json
Accept: application/json
{
"topic": "{{topic}}",
"partition": {{partition}},
"offset": {{offset}}
}
### Translate source offset with JSON body from latest Kafka offset-syncs without cache
POST {{baseUrl}}/api/v1/offsets/translate/latest
Content-Type: application/json
Accept: application/json
{
"topic": "{{topic}}",
"partition": 1,
"offset": 1644
}
### Translate source offsets by batch from cached offset-sync index
POST {{baseUrl}}/api/v1/offsets/translate/batch
Content-Type: application/json
Accept: application/json
{
"topicName": "{{topic}}",
"offsetList": [
{
"partition": 0,
"startOffset": 10
},
{
"partition": 0,
"startOffset": 100
},
{
"partition": 1,
"startOffset": 15
}
]
}
### Translate source offsets by batch from latest Kafka offset-syncs without cache
POST {{baseUrl}}/api/v1/offsets/translate/batch/latest
Content-Type: application/json
Accept: application/json
{
"topicName": "{{topic}}",
"offsetList": [
{
"partition": 0,
"startOffset": 10
},
{
"partition": 0,
"startOffset": 1644
},
{
"partition": 1,
"startOffset": 15
}
]
}