Improvement of REST API.