forked from TheTrunk/rates-api
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathswagger.yaml
102 lines (94 loc) · 2.51 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
openapi: 3.0.0
info:
title: Rates API
description: API documentation for the Rates API.
version: 3.0.0
paths:
/:
get:
summary: Redirect to /rates
description: Redirects the root path to the /rates endpoint.
responses:
'302':
description: Redirection to /rates.
/rates:
get:
summary: Get exchange rates
description: Retrieves exchange rates.
responses:
'200':
description: A list of exchange rates.
content:
application/json:
schema:
type: object
/marketsusd:
get:
summary: Get market data in USD
description: Retrieves market data in USD.
responses:
'200':
description: A list of market data in USD.
content:
application/json:
schema:
type: object
/v2/rates:
get:
summary: Get exchange rates (v2)
description: Retrieves version 2 of the exchange rates.
responses:
'200':
description: A list of exchange rates (v2).
content:
application/json:
schema:
type: object
/v2/rates-compressed:
get:
summary: Get compressed exchange rates (v2)
description: Retrieves a compressed version of the exchange rates (v2).
responses:
'200':
description: Compressed exchange rates (v2).
content:
application/json:
schema:
type: object
/v2/found-contracts:
get:
summary: Get found contracts
description: Retrieves a list of found contracts.
responses:
'200':
description: A list of found contracts.
content:
application/json:
schema:
type: array
items:
type: object
/v2/check-contracts:
post:
summary: Check and update contracts
description: Checks contracts and updates the store.
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: Contracts checked and store updated.
content:
application/json:
schema:
type: object
/metrics:
get:
summary: Get metrics data
description: Provides metrics data using Prometheus middleware.
responses:
'200':
description: Prometheus metrics data.