-
Notifications
You must be signed in to change notification settings - Fork 76
/
exchange-rates.yaml
66 lines (66 loc) · 1.58 KB
/
exchange-rates.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
openapi: 3.1.0
info:
title: Rafiki Exchange Rates
version: '1.0'
license:
name: Apache 2.0
identifier: Apache-2.0
summary: Integration Endpoint Rafiki expects at the Account Servicing Entity
description: 'Rafiki calls this endpoint at the Account Servicing Entity in order to fetch current exchange rates.'
contact:
email: tech@interledger.org
servers:
- url: 'https://account-servicing-entity.com/rates'
tags:
- name: rates
description: Exchange rates
paths:
/:
parameters:
- schema:
type: string
minLength: 1
name: base
in: query
required: true
description: Base exchange rate Base exchange rate
get:
summary: Fetch exchange rates
operationId: get-rates
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/rates'
examples:
Exchange Rates:
value:
base: 'USD'
rates:
EUR: 1.1602
ZAR: 17.3792
'404':
description: Not Found
description: Fetch current exchange rate pairs.
tags:
- rates
components:
schemas:
rates:
title: rates
type: object
properties:
base:
type: string
rates:
type: object
patternProperties:
^[A-Z]{3}$:
type: number
required:
- base
- rates
securitySchemes: {}
security: []