Restructuring of backend REST API