mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
87 lines
2.2 KiB
JSON
87 lines
2.2 KiB
JSON
|
|
{
|
|
"codes": [{
|
|
"title": "Get supported codes",
|
|
"description": "Returns the supported currency codes (example response)",
|
|
"run_check": true,
|
|
"request": {},
|
|
"response": {
|
|
"codes": [
|
|
{
|
|
"name": "AED",
|
|
"currency": "UAE Dirham"
|
|
},
|
|
{
|
|
"name": "AFN",
|
|
"currency": "Afghan Afghani"
|
|
},
|
|
{
|
|
"name": "ALL",
|
|
"currency": "Albanian Lek"
|
|
},
|
|
{
|
|
"name": "AMD",
|
|
"currency": "Armenian Dram"
|
|
},
|
|
{
|
|
"name": "ANG",
|
|
"currency": "Netherlands Antillian Guilder"
|
|
}
|
|
]
|
|
}
|
|
}],
|
|
"rates": [{
|
|
"title": "Get rates for USD",
|
|
"description": "Returns the rates for USD (sample response)",
|
|
"run_check": true,
|
|
"request": {
|
|
"code": "USD"
|
|
},
|
|
"response": {
|
|
"code": "usd",
|
|
"rates": {
|
|
"AED": 3.6725,
|
|
"AFN": 79.0514,
|
|
"ALL": 101.6054,
|
|
"AMD": 515.68,
|
|
"ANG": 1.79,
|
|
"AOA": 646.8737,
|
|
"ARS": 95.3433,
|
|
"AUD": 1.2998,
|
|
"AWG": 1.79,
|
|
"AZN": 1.7013
|
|
}
|
|
}
|
|
}],
|
|
"convert": [{
|
|
"title": "Convert USD to GBP",
|
|
"description": "Convert from USD to GBP",
|
|
"run_check": true,
|
|
"request": {
|
|
"from": "USD",
|
|
"to": "GBP"
|
|
},
|
|
"response": {
|
|
"from": "USD",
|
|
"to": "GBP",
|
|
"rate": 0.7104
|
|
}
|
|
},
|
|
{
|
|
"title": "Convert $10 USD to GBP",
|
|
"description": "Convert $10 from USD to GBP",
|
|
"run_check": true,
|
|
"request": {
|
|
"from": "USD",
|
|
"to": "GBP",
|
|
"amount": 10.0
|
|
},
|
|
"response": {
|
|
"from": "USD",
|
|
"to": "GBP",
|
|
"rate": 0.7104,
|
|
"amount": 7.104
|
|
}
|
|
}]
|
|
}
|