Fix checkstyle warnings in REST API module.