How to Create a REST API with Flask