Covalense Global Interview Question

How to create api for backend