added flight api endpoint