SAP interview question

Implement two endpoints of a web API in js/ts