Skip to content

Commit

Permalink
Add Bruno collection
Browse files Browse the repository at this point in the history
  • Loading branch information
maurizuki committed Oct 18, 2024
1 parent 7f192ec commit b5a060a
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bruno/Annual Average Rates.bru
Original file line number Diff line number Diff line change
@@ -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
}
26 changes: 26 additions & 0 deletions bruno/Daily Average Rates.bru
Original file line number Diff line number Diff line change
@@ -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
}
25 changes: 25 additions & 0 deletions bruno/Monthly Average Rates.bru
Original file line number Diff line number Diff line change
@@ -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
}
9 changes: 9 additions & 0 deletions bruno/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "1",
"name": "ECB Exchange Rates",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}
3 changes: 3 additions & 0 deletions bruno/environments/v1.0.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vars {
baseUri: https://data-api.ecb.europa.eu/service/data/EXR
}

0 comments on commit b5a060a

Please sign in to comment.