[REST] set REST API behind "-rest" option