Open bsdinis opened 5 years ago
Path: /flightinfos
Method: GET
Auth: member
Query:
inbound={Date}
outbound={Date}
bought={Boolean}
Response:
{[ id: String, inbound: Date, outbound: Date, from: String, to: String, link: String, bought: Boolean, cost: Number, // € -> can serve as budget notes: String, ]}
Notes:
Should return all flightinfos by default.
Status codes:
Tests:
Should return all flightinfos.
Should return all flightinfos that are inbound after this date.
Should return all flightinfo that are outbound before this date.
Should return all bought flights.
Should return all not bought flights.
Bad inbound/bad ouboundt: status code 404 on bad date format. All the others: return empty array.
@Dpac99 is this closeable?
Path: /flightinfos
Method: GET
Auth: member
Query:
inbound={Date}
flights inbound on this dayoutbound={Date}
flights outbound on this daybought={Boolean}
bought/notBought flightsResponse:
Notes:
Should return all flightinfos by default.
Status codes:
Tests:
Should return all flightinfos.
Should return all flightinfos that are inbound after this date.
Should return all flightinfo that are outbound before this date.
Should return all bought flights.
Should return all not bought flights.
Bad inbound/bad ouboundt: status code 404 on bad date format. All the others: return empty array.