Adding in tenant isolation into the mock rest endpoint
Adding in tenant isolation for definitions and public definitions for mock