Add catalog display currency conversion
Build and deploy Docker image / build (push) Successful in 2m2s
Build and deploy Docker image / build (push) Successful in 2m2s
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "ExchangeRate-API currency rates",
|
||||
"type": "collection"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Latest USD rates
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: https://open.er-api.com/v6/latest/USD
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body.result: eq success
|
||||
res.body.base_code: eq USD
|
||||
res.body.rates.USD: eq 1
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"result": "success",
|
||||
"provider": "https://www.exchangerate-api.com",
|
||||
"documentation": "https://www.exchangerate-api.com/docs/free",
|
||||
"terms_of_use": "https://www.exchangerate-api.com/terms",
|
||||
"time_last_update_unix": 1787529751,
|
||||
"time_last_update_utc": "Mon, 24 Aug 2026 00:02:31 +0000",
|
||||
"time_next_update_unix": 1787617021,
|
||||
"time_next_update_utc": "Tue, 25 Aug 2026 00:17:01 +0000",
|
||||
"base_code": "USD",
|
||||
"rates": {
|
||||
"USD": 1,
|
||||
"RUB": 82.802865,
|
||||
"CNY": 6.729114,
|
||||
"EUR": 0.85618,
|
||||
"AED": 3.6725
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user