make some bruno test for save
This commit is contained in:
parent
4c7f4357d2
commit
f3fe52b118
@ -1,4 +1,5 @@
|
|||||||
vars {
|
vars {
|
||||||
EXPRESS_API: https://drink-tweb.cb85.fr
|
EXPRESS_API: https://drink-tweb.cb85.fr
|
||||||
OTM_KEY: 5ae2e3f221c38a28845f05b6494c021573d9608a4d749ce8af625e0f
|
OTM_KEY: 5ae2e3f221c38a28845f05b6494c021573d9608a4d749ce8af625e0f
|
||||||
|
PB_URL: https://pb-tweb.cb85.fr
|
||||||
}
|
}
|
||||||
|
18
bruno/OpenData datatourisme/poketBase_api/connexion.bru
Normal file
18
bruno/OpenData datatourisme/poketBase_api/connexion.bru
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: connexion
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{PB_URL}}/api/collections/users/auth-with-password
|
||||||
|
body: json
|
||||||
|
auth: none
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"identity": "michel.biche@aptatio.com",
|
||||||
|
"password": "123456789"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
meta {
|
||||||
|
name: link user to poi
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{PB_URL}}/api/collections/user_poi/records
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE3MTg4Mjg0NzEsImlkIjoidnZ5OTNtMWhvYWVzaHd5IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.pC7u-QaZ_BYqWA5wG8wu1lRbbd4mKuKeAveWe_IBnfU
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"owner": "vvy93m1hoaeshwy",
|
||||||
|
"poi_list": "sh430u0im37cxm5"
|
||||||
|
}
|
||||||
|
}
|
40
bruno/OpenData datatourisme/poketBase_api/send a poi.bru
Normal file
40
bruno/OpenData datatourisme/poketBase_api/send a poi.bru
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
meta {
|
||||||
|
name: send a poi
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{PB_URL}}/api/collections/POI/records
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE3MTg4Mjg0NzEsImlkIjoidnZ5OTNtMWhvYWVzaHd5IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.pC7u-QaZ_BYqWA5wG8wu1lRbbd4mKuKeAveWe_IBnfU
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"Poi_id": "11472887",
|
||||||
|
"Poi": {
|
||||||
|
"type": "Feature",
|
||||||
|
"id": "11472887",
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user