-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename prices -> exchange rates (#1351)
* docs(backend): add exchange rate openapi spec * refactor(backend): rename prices -> exchange rates * fix(backend): formatting * refactor(mase): prices -> rates
- Loading branch information
1 parent
75fba84
commit e463e10
Showing
16 changed files
with
123 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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: [] | ||
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: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.