diff --git a/bruno/OpenData datatourisme/environments/dev.bru b/bruno/OpenData datatourisme/environments/dev.bru index e9ed20c..59925ce 100644 --- a/bruno/OpenData datatourisme/environments/dev.bru +++ b/bruno/OpenData datatourisme/environments/dev.bru @@ -1,3 +1,7 @@ +vars { + TRIPMAP_URL: https://api.opentripmap.com/0.1 +} vars:secret [ - app_key + app_key, + OTM_KEY ] diff --git a/bruno/OpenData datatourisme/express test.bru b/bruno/OpenData datatourisme/express Drink OTM.bru similarity index 71% rename from bruno/OpenData datatourisme/express test.bru rename to bruno/OpenData datatourisme/express Drink OTM.bru index c514a9c..a13d65f 100644 --- a/bruno/OpenData datatourisme/express test.bru +++ b/bruno/OpenData datatourisme/express Drink OTM.bru @@ -1,7 +1,7 @@ meta { - name: express test + name: express Drink OTM type: http - seq: 3 + seq: 4 } get { diff --git a/bruno/OpenData datatourisme/otm_drink.bru b/bruno/OpenData datatourisme/otm_drink.bru new file mode 100644 index 0000000..1e4c308 --- /dev/null +++ b/bruno/OpenData datatourisme/otm_drink.bru @@ -0,0 +1,19 @@ +meta { + name: otm_drink + type: http + seq: 6 +} + +get { + url: {{TRIPMAP_URL}}/en/places/radius?radius=1000&lon=-1.43333&lat=46.66667&apikey={{OTM_KEY}}&kinds=bars,cafes,pubs,biergartens + body: none + auth: none +} + +query { + radius: 1000 + lon: -1.43333 + lat: 46.66667 + apikey: {{OTM_KEY}} + kinds: bars,cafes,pubs,biergartens +} diff --git a/bruno/OpenData datatourisme/otm_ex_city.bru b/bruno/OpenData datatourisme/otm_ex_city.bru new file mode 100644 index 0000000..3f3036f --- /dev/null +++ b/bruno/OpenData datatourisme/otm_ex_city.bru @@ -0,0 +1,16 @@ +meta { + name: otm_ex_city + type: http + seq: 7 +} + +get { + url: http://localhost:3001/otm/city?name=La roche sur yon&radius=300 + body: none + auth: none +} + +query { + name: La roche sur yon + radius: 300 +} diff --git a/bruno/OpenData datatourisme/otm_location.bru b/bruno/OpenData datatourisme/otm_location.bru new file mode 100644 index 0000000..8e8813f --- /dev/null +++ b/bruno/OpenData datatourisme/otm_location.bru @@ -0,0 +1,16 @@ +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}} +} diff --git a/bruno/OpenData datatourisme/test graphQL.bru b/bruno/OpenData datatourisme/test graphQL.bru new file mode 100644 index 0000000..73046ce --- /dev/null +++ b/bruno/OpenData datatourisme/test graphQL.bru @@ -0,0 +1,22 @@ +meta { + name: test graphQL + type: graphql + seq: 3 +} + +post { + url: https://datatour-tweb.cb85.fr + body: graphql + auth: none +} + +body:graphql { + { + poi { + total + results { + _uri + } + } + } +}