Flask API example