REST API improvements