a simple api with flask