Covalense Global interview question

How to create api for backend