REST API implementation – how to manage this?