added rest api called flight