private String startBridgeServerWithRestService(final String hostName, final String locators,
      final String[] regions) throws IOException {
    final int serverPort = getRandomAvailableTCPPort();
    // create Cache of given VM and start HTTP service with REST APIs service
    Properties props = new Properties();
    props.setProperty(MCAST_PORT, String.valueOf(0));
    props.setProperty(LOCATORS, locators);
    props.setProperty(START_DEV_REST_API, "true");
    props.setProperty(HTTP_SERVICE_BIND_ADDRESS, hostName);
    props.setProperty(HTTP_SERVICE_PORT, String.valueOf(serverPort));

    InternalCache cache =
        (InternalCache) new CacheFactory(props).setPdxReadSerialized(true).create();
    CacheServer server = createRegionAndStartCacheServer(regions, cache);

    remoteObjects.put(CACHE_KEY, cache);
    server.getPort();

    return "http://" + hostName + ":" + serverPort + urlContext + "/v1";
  }
Dunit Test containing inter - operations between REST Client and Gemfire cache client

@since GemFire 8.0
geode-assembly/src/distributedTest/java/org/apache/geode/rest/internal/web/controllers/RestAPIsAndInterOpsDUnitTest.java