45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
---
|
|
http_interactions:
|
|
- request:
|
|
method: get
|
|
uri: http://api-adresse.data.gouv.fr/search?limit=1&q=Paris
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- "*/*"
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- rest-client/2.0.0 (darwin15.6.0 x86_64) ruby/2.3.1p112
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx/1.11.3
|
|
Date:
|
|
- Fri, 16 Dec 2016 14:16:43 GMT
|
|
Content-Type:
|
|
- application/json; charset=utf-8
|
|
Content-Length:
|
|
- '457'
|
|
Connection:
|
|
- keep-alive
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Access-Control-Allow-Headers:
|
|
- X-Requested-With
|
|
body:
|
|
encoding: UTF-8
|
|
string: '{"limit": 1, "attribution": "BAN", "version": "draft", "licence": "ODbL
|
|
1.0", "query": "Paris", "type": "FeatureCollection", "features": [{"geometry":
|
|
{"type": "Point", "coordinates": [2.3469, 48.8589]}, "properties": {"adm_weight":
|
|
"6", "citycode": "75056", "name": "Paris", "city": "Paris", "postcode": "75000",
|
|
"context": "75, \u00cele-de-France", "score": 1.0, "label": "Paris", "id":
|
|
"75056", "type": "city", "population": "2244"}, "type": "Feature"}]}'
|
|
http_version:
|
|
recorded_at: Fri, 16 Dec 2016 14:16:43 GMT
|
|
recorded_with: VCR 3.0.3
|