rrest merged with api