-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapis.yaml
178 lines (161 loc) · 4.33 KB
/
apis.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
namespace: default
name: currency-api
description: Open-source API for current and historical foreign exchange rates
published by the European Central Bank
title: Currency API
tags:
- rest
links:
- url: https://www.frankfurter.app/docs/
title: Frankfurter Docs
icon: website
spec:
type: openapi
lifecycle: production
owner: bap-ce-apac
definition: >
openapi: 3.0.0
info:
title: Currency V1
description: |-
The Currency App uses the Frankfurter API to track foreign exchange references rates published
by the European Central Bank. The data refreshes around 16:00 CET every working day.
contact:
email: [email protected]
version: 1.0.0
servers:
- url: https://api.frankfurter.app
- url: https://dev-34.120.21.215.nip.io/currency/v1
- url: https://eval-group.34-120-155-152.nip.io/currency/v1
tags:
- name: rates
description: Exchange Rates
- name: currencies
description: Currencies
- name: history
description: Historical Rates
security:
- ApiKeyAuth: []
paths:
/currencies:
get:
tags:
- currencies
summary: List currencies
description: Get list of current Currencies
operationId: listCurrencies
responses:
"200":
description: success
content:
application/json:
schema:
type: object
"400":
description: Invalid status value
/latest:
get:
tags:
- rates
summary: Get Exchange Rates
description: Get Exchange Rates
operationId: getRates
parameters:
- name: from
in: query
description: Currency to convert from
required: false
schema:
type: string
default: AUD
- name: to
in: query
description: Currency to convert to
required: false
schema:
type: string
default: USD
- name: amount
in: query
description: Amount to convert
required: false
schema:
type: number
default: 1
responses:
"200":
description: success
content:
application/json:
schema:
type: object
# items:
"400":
description: Invalid status value
/{date}:
get:
tags:
- history
summary: Get history
description: Get historical rates
operationId: getHistory
parameters:
- name: date
in: path
description: "Date Range. Examples: 2023-01-01 or 2023-01-01..2023-01-31 or 2023-01-01.."
required: true
schema:
type: string
default: 2023-01-01..
- name: from
in: query
description: Currency to convert from
required: false
schema:
type: string
default: AUD
- name: to
in: query
description: Currency to convert to
required: false
schema:
type: string
default: USD
responses:
"200":
description: success
content:
application/json:
schema:
type: object
"400":
description: Invalid status value
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
name: apikey
in: query
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
namespace: default
name: example-grpc-api
spec:
type: grpc
lifecycle: experimental
owner: bap-ce-apac
system: examples
definition: |
syntax = "proto3";
service Exampler {
rpc Example (ExampleMessage) returns (ExampleMessage) {};
}
message ExampleMessage {
string example = 1;
};