Fix broken apexRest endpoint and add apexRest test.

apexRest endpoint was broken in v0.7.0 when the api was refactored to use _getOpts.