Use HTTPS for the API Adresse URL
This commit is contained in:
parent
a7a6898ce3
commit
bf63e7d6ab
8 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
# API URLs
|
||||
API_ADRESSE_URL = "http://api-adresse.data.gouv.fr/search"
|
||||
API_ADRESSE_URL = "https://api-adresse.data.gouv.fr/search"
|
||||
API_CARTO_URL = "https://apicarto.sgmap.fr"
|
||||
API_ENTREPRISE_URL = "https://entreprise.api.gouv.fr/v2"
|
||||
API_GEO_URL = "https://geo.api.gouv.fr"
|
||||
|
|
2
spec/fixtures/cassettes/api_adresse_octo.yml
vendored
2
spec/fixtures/cassettes/api_adresse_octo.yml
vendored
|
@ -2,7 +2,7 @@
|
|||
http_interactions:
|
||||
- request:
|
||||
method: get
|
||||
uri: http://api-adresse.data.gouv.fr/search?limit=1&q=50%20av%20des%20champs%20elysees
|
||||
uri: https://api-adresse.data.gouv.fr/search?limit=1&q=50%20av%20des%20champs%20elysees
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
http_interactions:
|
||||
- request:
|
||||
method: get
|
||||
uri: http://api-adresse.data.gouv.fr/search?limit=1&q=je%20recherche%20pas%20grand%20chose
|
||||
uri: https://api-adresse.data.gouv.fr/search?limit=1&q=je%20recherche%20pas%20grand%20chose
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
http_interactions:
|
||||
- request:
|
||||
method: get
|
||||
uri: http://api-adresse.data.gouv.fr/search?limit=5&q=je%20recherche%20pas%20grand%20chose
|
||||
uri: https://api-adresse.data.gouv.fr/search?limit=5&q=je%20recherche%20pas%20grand%20chose
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
http_interactions:
|
||||
- request:
|
||||
method: get
|
||||
uri: http://api-adresse.data.gouv.fr/search?limit=1&q=Paris
|
||||
uri: https://api-adresse.data.gouv.fr/search?limit=1&q=Paris
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
http_interactions:
|
||||
- request:
|
||||
method: get
|
||||
uri: http://api-adresse.data.gouv.fr/search?limit=5&q=Paris
|
||||
uri: https://api-adresse.data.gouv.fr/search?limit=5&q=Paris
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
http_interactions:
|
||||
- request:
|
||||
method: get
|
||||
uri: http://api-adresse.data.gouv.fr/search?limit=1&q=50%20AV%20DES%20CHAMPS%20ELYSEES%20complement_adresse%2075008%20PARIS%208
|
||||
uri: https://api-adresse.data.gouv.fr/search?limit=1&q=50%20AV%20DES%20CHAMPS%20ELYSEES%20complement_adresse%2075008%20PARIS%208
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
|
|
|
@ -9,7 +9,7 @@ describe ApiAdresse::AddressRetriever do
|
|||
subject { described_class.new(request).list }
|
||||
|
||||
before do
|
||||
stub_request(:get, "http://api-adresse.data.gouv.fr/search?&q=#{request}&limit=5")
|
||||
stub_request(:get, "https://api-adresse.data.gouv.fr/search?&q=#{request}&limit=5")
|
||||
.to_return(status: status, body: response, headers: {})
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue