Java R&D interview question

How to work with custom APIs using Flask?