first commit of flask api code