From f863a918bfd1bc295fc09889513a968aaab10bec Mon Sep 17 00:00:00 2001 From: Clement Date: Fri, 3 May 2024 10:50:51 +0200 Subject: [PATCH] update bruno test --- bruno/OpenData datatourisme/Google API.bru | 30 +++++++++++++++++++ .../environments/dev.bru | 3 +- .../list oaut methode.bru | 11 +++++++ bruno/OpenData datatourisme/oauth test.bru | 18 +++++++++++ 4 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 bruno/OpenData datatourisme/Google API.bru create mode 100644 bruno/OpenData datatourisme/list oaut methode.bru create mode 100644 bruno/OpenData datatourisme/oauth test.bru diff --git a/bruno/OpenData datatourisme/Google API.bru b/bruno/OpenData datatourisme/Google API.bru new file mode 100644 index 0000000..189895a --- /dev/null +++ b/bruno/OpenData datatourisme/Google API.bru @@ -0,0 +1,30 @@ +meta { + name: Google API + type: http + seq: 3 +} + +post { + url: https://places.googleapis.com/v1/places:searchNearby + body: json + auth: none +} + +headers { + X-Goog-Api-Key: {{GOOGLE_API_KEY}} +} + +body:json { + { + "includedTypes": ["restaurant"], + "maxResultCount": 10, + "locationRestriction": { + "circle": { + "center": { + "latitude": 37.7937, + "longitude": -122.3965}, + "radius": 500.0 + } + } + } +} diff --git a/bruno/OpenData datatourisme/environments/dev.bru b/bruno/OpenData datatourisme/environments/dev.bru index e9ed20c..47ad763 100644 --- a/bruno/OpenData datatourisme/environments/dev.bru +++ b/bruno/OpenData datatourisme/environments/dev.bru @@ -1,3 +1,4 @@ vars:secret [ - app_key + app_key, + GOOGLE_API_KEY ] diff --git a/bruno/OpenData datatourisme/list oaut methode.bru b/bruno/OpenData datatourisme/list oaut methode.bru new file mode 100644 index 0000000..f7f7b17 --- /dev/null +++ b/bruno/OpenData datatourisme/list oaut methode.bru @@ -0,0 +1,11 @@ +meta { + name: list oaut methode + type: http + seq: 5 +} + +get { + url: https://pb-tweb.cb85.fr/api/collections/users/auth-methods + body: none + auth: none +} diff --git a/bruno/OpenData datatourisme/oauth test.bru b/bruno/OpenData datatourisme/oauth test.bru new file mode 100644 index 0000000..50421b2 --- /dev/null +++ b/bruno/OpenData datatourisme/oauth test.bru @@ -0,0 +1,18 @@ +meta { + name: oauth test + type: http + seq: 4 +} + +post { + url: https://pb-tweb.cb85.fr/api/collections/users/auth-with-oauth2 + body: json + auth: none +} + +body:json { + { + provider: "google" + + } +}