Enhancing server to implement REST API