Backend code and REST API