Closed lincent closed 6 days ago
Manual test cases required to verify:
http://64.225.143.231/api/air-pollutant/forecast
is successful
http://127.0.0.1:8000/air-pollutant/measurements
is successful
http://127.0.0.1:8000/air-pollutant/measurements/summary
is successful
Test Automation Required?
GET to http://64.225.143.231/api/air-pollutant/forecast 200 response with data
{$and:
[
{forecast_base_time: new ISODate("2024-06-25T12:00:00.000+00:00")},
{forecast_valid_time:
{
$gte: new ISODate('2024-06-25T12:00:00.000+00:00'),
$lte: new ISODate('2024-06-30T12:00:00.000+00:00')
}
},
{name: "London"}
]
}
GET to http://64.225.143.231/api/air-pollutant/measurements 200 response with data
{
$and: [
{location_type: "city"},
{api_source: "OpenAQ"},
{measurement_date: {
$gte: ISODate("2024-06-25T13:00:00.000Z"),
$lte: ISODate("2024-06-25T14:00:00.000Z")
}
},
{location_name: "Ealing Horn Lane"}
]
}
GET to http://64.225.143.231/api/air-pollutant/measurements/summary
Requires the output of this story : #22
Containerise the API
Acceptance Criteria: