-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger.yaml
114 lines (112 loc) · 2.96 KB
/
swagger.yaml
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
openapi: 3.0.1
info:
version: 1.0.0
title: RabbitMQ Replay API
paths:
/replay:
get:
summary: Retrieve data from a specified time range and queue.
parameters:
- name: from
in: query
description: Start timestamp (inclusive).
required: false
schema:
type: string
format: date-time
- name: to
in: query
description: End timestamp (exclusive).
required: false
schema:
type: string
format: date-time
- name: queueName
in: query
description: Name of the queue.
required: true
schema:
type: string
responses:
'200':
description: Successful retrieval of data.
content:
application/json:
schema:
$ref: '#/components/schemas/Message'
'500':
description: Internal server error.
content:
application/json:
schema:
type: object
properties:
error:
type: string
post:
summary: Submit timestamps, a transaction ID, and a queue for replay.
requestBody:
description: Data to submit for replay.
required: true
content:
application/json:
schema:
oneOf:
- type: object
properties:
from:
type: string
format: date-time
to:
type: string
format: date-time
queueName:
type: string
- type: object
properties:
transactionId:
type: string
queueName:
type: string
responses:
'201':
description: Successful replay.
content:
application/json:
schema:
$ref: '#/components/schemas/Message'
'400':
description: Bad request. Neither timestamps nor transactionId submitted.
'404':
description: Transaction ID not found.
'500':
description: Internal server error.
content:
application/json:
schema:
type: object
properties:
error:
type: string
components:
schemas:
TransactionHeader:
type: object
properties:
name:
type: string
value:
type: string
Message:
type: object
properties:
offset:
type: integer
format: int64
transaction:
$ref: '#/components/schemas/TransactionHeader'
timestamp:
type: string
format: date-time
data:
type: string