From e95281c50df2d394017eb94d2e4469232574d1d2 Mon Sep 17 00:00:00 2001 From: Clement Date: Fri, 7 Jun 2024 15:01:33 +0200 Subject: [PATCH] sync test bruno --- .../poketBase_api/get all poi.bru | 27 ++++++++++++++ .../poketBase_api/send fav to astro.bru | 37 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 bruno/OpenData datatourisme/poketBase_api/get all poi.bru create mode 100644 bruno/OpenData datatourisme/poketBase_api/send fav to astro.bru diff --git a/bruno/OpenData datatourisme/poketBase_api/get all poi.bru b/bruno/OpenData datatourisme/poketBase_api/get all poi.bru new file mode 100644 index 0000000..9f57130 --- /dev/null +++ b/bruno/OpenData datatourisme/poketBase_api/get all poi.bru @@ -0,0 +1,27 @@ +meta { + name: get all poi + type: http + seq: 5 +} + +get { + url: {{PB_URL}}/api/collections/user_poi/records?filter=owner='vvy93m1hoaeshwy'&&poi_list='cabkkovmjsfoapa' + body: json + auth: bearer +} + +query { + filter: owner + poi_list: 'cabkkovmjsfoapa' +} + +auth:bearer { + token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE3MTg4Mjg0NzEsImlkIjoidnZ5OTNtMWhvYWVzaHd5IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.pC7u-QaZ_BYqWA5wG8wu1lRbbd4mKuKeAveWe_IBnfU +} + +body:json { + { + "owner": "vvy93m1hoaeshwy", + "poi_list": "sh430u0im37cxm5" + } +} diff --git a/bruno/OpenData datatourisme/poketBase_api/send fav to astro.bru b/bruno/OpenData datatourisme/poketBase_api/send fav to astro.bru new file mode 100644 index 0000000..7059294 --- /dev/null +++ b/bruno/OpenData datatourisme/poketBase_api/send fav to astro.bru @@ -0,0 +1,37 @@ +meta { + name: send fav to astro + type: http + seq: 4 +} + +post { + url: http://localhost:3000/maps/save_poi + body: json + auth: bearer +} + +auth:bearer { + token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE3MTg4ODY2OTIsImlkIjoidnZ5OTNtMWhvYWVzaHd5IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.R9PBGlHn6aBHt89g6G0NykMh_Vye24OpKEUYtz6R6Og +} + +body:json { + { + "type": "Feature", + "id": "11472888", + "geometry": { + "type": "Point", + "coordinates": [ + -0.0626024, + 51.4924088 + ] + }, + "properties": { + "xid": "W544344833", + "name": "The Blue Anchor", + "rate": 2, + "osm": "way/544344833", + "wikidata": "Q7718716", + "kinds": "pubs,foods,shops,marketplaces,tourist_facilities" + } + } +}