From b5a060a6b7eaa417ca42db9398330691679ed6f1 Mon Sep 17 00:00:00 2001 From: maurizuki <62178459+maurizuki@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:45:07 +0200 Subject: [PATCH] Add Bruno collection --- bruno/Annual Average Rates.bru | 25 +++++++++++++++++++++++++ bruno/Daily Average Rates.bru | 26 ++++++++++++++++++++++++++ bruno/Monthly Average Rates.bru | 25 +++++++++++++++++++++++++ bruno/bruno.json | 9 +++++++++ bruno/environments/v1.0.bru | 3 +++ 5 files changed, 88 insertions(+) create mode 100644 bruno/Annual Average Rates.bru create mode 100644 bruno/Daily Average Rates.bru create mode 100644 bruno/Monthly Average Rates.bru create mode 100644 bruno/bruno.json create mode 100644 bruno/environments/v1.0.bru diff --git a/bruno/Annual Average Rates.bru b/bruno/Annual Average Rates.bru new file mode 100644 index 0000000..ea5d775 --- /dev/null +++ b/bruno/Annual Average Rates.bru @@ -0,0 +1,25 @@ +meta { + name: Annual Average Rates + type: http + seq: 4 +} + +get { + url: {{baseUri}}/A.{{currencies}}.EUR.SP00.A?detail=dataOnly&startPeriod=2010&endPeriod=2020 + body: none + auth: none +} + +params:query { + detail: dataOnly + startPeriod: 2010 + endPeriod: 2020 +} + +headers { + Accept: application/xml +} + +vars:pre-request { + currencies: USD+GBP +} diff --git a/bruno/Daily Average Rates.bru b/bruno/Daily Average Rates.bru new file mode 100644 index 0000000..ebbcdeb --- /dev/null +++ b/bruno/Daily Average Rates.bru @@ -0,0 +1,26 @@ +meta { + name: Daily Average Rates + type: http + seq: 2 +} + +get { + url: {{baseUri}}/D.{{currencies}}.EUR.SP00.A?detail=dataOnly&lastNObservations=1 + body: none + auth: none +} + +params:query { + detail: dataOnly + lastNObservations: 1 + ~startPeriod: 2020-01-01 + ~endPeriod: 2020-12-31 +} + +headers { + Accept: application/xml +} + +vars:pre-request { + currencies: USD+GBP +} diff --git a/bruno/Monthly Average Rates.bru b/bruno/Monthly Average Rates.bru new file mode 100644 index 0000000..005adfe --- /dev/null +++ b/bruno/Monthly Average Rates.bru @@ -0,0 +1,25 @@ +meta { + name: Monthly Average Rates + type: http + seq: 3 +} + +get { + url: {{baseUri}}/M.{{currencies}}.EUR.SP00.A?detail=dataOnly&startPeriod=2020-01&endPeriod=2020-12 + body: none + auth: none +} + +params:query { + detail: dataOnly + startPeriod: 2020-01 + endPeriod: 2020-12 +} + +headers { + Accept: application/xml +} + +vars:pre-request { + currencies: USD+GBP +} diff --git a/bruno/bruno.json b/bruno/bruno.json new file mode 100644 index 0000000..f41af46 --- /dev/null +++ b/bruno/bruno.json @@ -0,0 +1,9 @@ +{ + "version": "1", + "name": "ECB Exchange Rates", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ] +} \ No newline at end of file diff --git a/bruno/environments/v1.0.bru b/bruno/environments/v1.0.bru new file mode 100644 index 0000000..a82d2ce --- /dev/null +++ b/bruno/environments/v1.0.bru @@ -0,0 +1,3 @@ +vars { + baseUri: https://data-api.ecb.europa.eu/service/data/EXR +}