added flask api sample