RestApi: Fixed empty response