From 405dcaeba92dad258ac770ea3109fbf6644b0dbb Mon Sep 17 00:00:00 2001 From: Clement Date: Sat, 18 May 2024 14:34:43 +0200 Subject: [PATCH] change path in bruno --- .../express/otm_ex_box.bru | 20 +++++++++++++++++++ .../{ => express}/otm_ex_city.bru | 2 +- .../{ => express}/otm_ex_drink_id.bru | 2 +- .../{ => express}/otm_ex_radius.bru | 2 +- .../get return format.bru | 11 ---------- .../{ => otm}/otm_drink.bru | 2 +- .../otm/otm_drink_bbox.bru | 19 ++++++++++++++++++ .../{ => otm}/otm_drink_id.bru | 2 +- .../otm/otm_location.bru | 20 +++++++++++++++++++ bruno/OpenData datatourisme/otm_location.bru | 16 --------------- 10 files changed, 64 insertions(+), 32 deletions(-) create mode 100644 bruno/OpenData datatourisme/express/otm_ex_box.bru rename bruno/OpenData datatourisme/{ => express}/otm_ex_city.bru (95%) rename bruno/OpenData datatourisme/{ => express}/otm_ex_drink_id.bru (95%) rename bruno/OpenData datatourisme/{ => express}/otm_ex_radius.bru (95%) delete mode 100644 bruno/OpenData datatourisme/get return format.bru rename bruno/OpenData datatourisme/{ => otm}/otm_drink.bru (97%) create mode 100644 bruno/OpenData datatourisme/otm/otm_drink_bbox.bru rename bruno/OpenData datatourisme/{ => otm}/otm_drink_id.bru (95%) create mode 100644 bruno/OpenData datatourisme/otm/otm_location.bru delete mode 100644 bruno/OpenData datatourisme/otm_location.bru diff --git a/bruno/OpenData datatourisme/express/otm_ex_box.bru b/bruno/OpenData datatourisme/express/otm_ex_box.bru new file mode 100644 index 0000000..f958734 --- /dev/null +++ b/bruno/OpenData datatourisme/express/otm_ex_box.bru @@ -0,0 +1,20 @@ +meta { + name: otm_ex_box + type: http + seq: 4 +} + +get { + url: http://localhost:3001/otm/box?lon1=-1.435199&lon2=-1.43519&lat1=46.668460&lat2=46.668461&apikey={{OTM_KEY}}&kinds=bars,cafes,pubs,biergartens + body: none + auth: none +} + +query { + lon1: -1.435199 + lon2: -1.43519 + lat1: 46.668460 + lat2: 46.668461 + apikey: {{OTM_KEY}} + kinds: bars,cafes,pubs,biergartens +} diff --git a/bruno/OpenData datatourisme/otm_ex_city.bru b/bruno/OpenData datatourisme/express/otm_ex_city.bru similarity index 95% rename from bruno/OpenData datatourisme/otm_ex_city.bru rename to bruno/OpenData datatourisme/express/otm_ex_city.bru index 6f0ad67..15bda16 100644 --- a/bruno/OpenData datatourisme/otm_ex_city.bru +++ b/bruno/OpenData datatourisme/express/otm_ex_city.bru @@ -1,7 +1,7 @@ meta { name: otm_ex_city type: http - seq: 8 + seq: 1 } get { diff --git a/bruno/OpenData datatourisme/otm_ex_drink_id.bru b/bruno/OpenData datatourisme/express/otm_ex_drink_id.bru similarity index 95% rename from bruno/OpenData datatourisme/otm_ex_drink_id.bru rename to bruno/OpenData datatourisme/express/otm_ex_drink_id.bru index 586b4c9..8adc773 100644 --- a/bruno/OpenData datatourisme/otm_ex_drink_id.bru +++ b/bruno/OpenData datatourisme/express/otm_ex_drink_id.bru @@ -1,7 +1,7 @@ meta { name: otm_ex_drink_id type: http - seq: 10 + seq: 2 } get { diff --git a/bruno/OpenData datatourisme/otm_ex_radius.bru b/bruno/OpenData datatourisme/express/otm_ex_radius.bru similarity index 95% rename from bruno/OpenData datatourisme/otm_ex_radius.bru rename to bruno/OpenData datatourisme/express/otm_ex_radius.bru index e4d9e03..31fb497 100644 --- a/bruno/OpenData datatourisme/otm_ex_radius.bru +++ b/bruno/OpenData datatourisme/express/otm_ex_radius.bru @@ -1,7 +1,7 @@ meta { name: otm_ex_radius type: http - seq: 9 + seq: 3 } get { diff --git a/bruno/OpenData datatourisme/get return format.bru b/bruno/OpenData datatourisme/get return format.bru deleted file mode 100644 index b71bc69..0000000 --- a/bruno/OpenData datatourisme/get return format.bru +++ /dev/null @@ -1,11 +0,0 @@ -meta { - name: get return format - type: http - seq: 11 -} - -get { - url: https://dev.opentripmap.org/openapi.en.json - body: none - auth: none -} diff --git a/bruno/OpenData datatourisme/otm_drink.bru b/bruno/OpenData datatourisme/otm/otm_drink.bru similarity index 97% rename from bruno/OpenData datatourisme/otm_drink.bru rename to bruno/OpenData datatourisme/otm/otm_drink.bru index 21449ec..c1f4cf1 100644 --- a/bruno/OpenData datatourisme/otm_drink.bru +++ b/bruno/OpenData datatourisme/otm/otm_drink.bru @@ -1,7 +1,7 @@ meta { name: otm_drink type: http - seq: 6 + seq: 1 } get { diff --git a/bruno/OpenData datatourisme/otm/otm_drink_bbox.bru b/bruno/OpenData datatourisme/otm/otm_drink_bbox.bru new file mode 100644 index 0000000..3b1a349 --- /dev/null +++ b/bruno/OpenData datatourisme/otm/otm_drink_bbox.bru @@ -0,0 +1,19 @@ +meta { + name: otm_drink_bbox + type: http + seq: 4 +} + +get { + url: {{TRIPMAP_URL}}/en/places/radius?radius=10&lon=-1.4344594&lat=46.6686478&apikey={{OTM_KEY}}&kinds=bars,cafes,pubs,biergartens + body: none + auth: none +} + +query { + radius: 10 + lon: -1.4344594 + lat: 46.6686478 + apikey: {{OTM_KEY}} + kinds: bars,cafes,pubs,biergartens +} diff --git a/bruno/OpenData datatourisme/otm_drink_id.bru b/bruno/OpenData datatourisme/otm/otm_drink_id.bru similarity index 95% rename from bruno/OpenData datatourisme/otm_drink_id.bru rename to bruno/OpenData datatourisme/otm/otm_drink_id.bru index 408e921..60253d1 100644 --- a/bruno/OpenData datatourisme/otm_drink_id.bru +++ b/bruno/OpenData datatourisme/otm/otm_drink_id.bru @@ -1,7 +1,7 @@ meta { name: otm_drink_id type: http - seq: 7 + seq: 3 } get { diff --git a/bruno/OpenData datatourisme/otm/otm_location.bru b/bruno/OpenData datatourisme/otm/otm_location.bru new file mode 100644 index 0000000..ca04a6f --- /dev/null +++ b/bruno/OpenData datatourisme/otm/otm_location.bru @@ -0,0 +1,20 @@ +meta { + name: otm_location + type: http + seq: 2 +} + +get { + url: https://api.opentripmap.com/0.1/en/places/bbox?lon_min=-1.435199&lon_max=-1.43519&lat_min=46.668460&lat_max=46.668461&apikey={{OTM_KEY}}&kinds=bars,cafes,pubs,biergartens + body: none + auth: none +} + +query { + lon_min: -1.435199 + lon_max: -1.43519 + lat_min: 46.668460 + lat_max: 46.668461 + apikey: {{OTM_KEY}} + kinds: bars,cafes,pubs,biergartens +} diff --git a/bruno/OpenData datatourisme/otm_location.bru b/bruno/OpenData datatourisme/otm_location.bru deleted file mode 100644 index 8e8813f..0000000 --- a/bruno/OpenData datatourisme/otm_location.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: otm_location - type: http - seq: 5 -} - -get { - url: {{TRIPMAP_URL}}/en/places/geoname?name=Paris&apikey={{OTM_KEY}} - body: none - auth: none -} - -query { - name: Paris - apikey: {{OTM_KEY}} -}