1
0
mirror of https://github.com/pyro2927/SouthwestCheckin.git synced 2025-12-06 01:13:19 +00:00
Files
SouthwestCheckin/tests/fixtures/cassettes/test_openflights_api.yml
2019-02-17 23:29:40 -08:00

35 lines
1.4 KiB
YAML

interactions:
- request:
body: iata=LAX&country=ALL&db=airports&iatafilter=true&action=SEARCH&offset=0
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['71']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.21.0]
method: POST
uri: https://openflights.org/php/apsearch.php
response:
body: {string: '{"status": 1, "offset": 0, "max": "1", "airports": [{"name": "[REDACTED]",
"city": "Los Angeles", "country": "United States", "iata": "LAX", "icao":
"KLAX", "x": "-118.4079971", "y": "33.94250107", "elevation": "125", "apid":
"3484", "timezone": "-8", "dst": "A", "tz_id": "America/Los_Angeles", "type":
"airport", "source": "OurAirports", "ap_uid": null, "ap_name": "Los Angeles
International. (LAX), United States"}]}'}
headers:
Cache-Control: ['no-store, no-cache, must-revalidate, post-check=0, pre-check=0']
Connection: [Keep-Alive]
Content-Type: [text/html]
Date: ['Mon, 18 Feb 2019 07:24:50 GMT']
Expires: ['Thu, 19 Nov 1981 08:52:00 GMT']
Keep-Alive: ['timeout=5, max=100']
Pragma: [no-cache]
Server: [Apache/2.4.7 (Ubuntu)]
Set-Cookie: [PHPSESSID=mpoesla4lf9h12d3hnp5fn6t24; path=/]
Vary: [Accept-Encoding]
X-Powered-By: [PHP/5.5.9-1ubuntu4.26]
content-length: ['405']
status: {code: 200, message: OK}
version: 1