Adding REST API