@Test public void listAdministrators() throws Exception { when(zoneService.listAdministratorsWithCache(Zone.valueOf("foo"))).thenReturn(asList("admin1", "admin2")); oauthPerform(user, get("/v1/zone/foo/administrator/username")).andExpect(status().isOk()) .andExpect(jsonPath("$.data[0]", is("admin1"))) .andExpect(jsonPath("$.data[1]", is("admin2"))); }
@ApiOperation(value = "[public] List administrators of the zone", notes = "List username of administrators of the zone") @RequiredScope(PUBLIC) @RequestMapping(value = "/{zone}/administrator/username", method = RequestMethod.GET) public List<String> listAdministrators(ClientAppUserAccessToken token, @PathVariable("zone") String zone) { return zoneService.listAdministratorsWithCache(Zone.valueOf(zone)); }
V1ZoneResource { @ApiOperation(value = "[public] List administrators of the zone", notes = "List username of administrators of the zone") @RequiredScope(PUBLIC) @RequestMapping(value = "/{zone}/administrator/username", method = RequestMethod.GET) public List<String> listAdministrators(ClientAppUserAccessToken token, @PathVariable("zone") String zone) { return zoneService.listAdministratorsWithCache(Zone.valueOf(zone)); } }
V1ZoneResource { @ApiOperation(value = "[public] List administrators of the zone", notes = "List username of administrators of the zone") @RequiredScope(PUBLIC) @RequestMapping(value = "/{zone}/administrator/username", method = RequestMethod.GET) public List<String> listAdministrators(ClientAppUserAccessToken token, @PathVariable("zone") String zone) { return zoneService.listAdministratorsWithCache(Zone.valueOf(zone)); }  }
V1ZoneResource { @ApiOperation(value = "[public] List administrators of the zone", notes = "List username of administrators of the zone") @RequiredScope(PUBLIC) @RequestMapping(value = "/{zone}/administrator/username", method = RequestMethod.GET) public List<String> listAdministrators(ClientAppUserAccessToken token, @PathVariable("zone") String zone) { return zoneService.listAdministratorsWithCache(Zone.valueOf(zone)); }  @ApiOperation(value = "[public] List all zones", notes = "List all available zones.") @RequiredScope(PUBLIC) @RequestMapping(value = "/all", method = RequestMethod.GET) List<V1ZoneDto> all(ClientAppUserAccessToken token); @ApiOperation(value = "[public] List administrators of the zone", notes = "List username of administrators of the zone") @RequiredScope(PUBLIC) @RequestMapping(value = "/{zone}/administrator/username", method = RequestMethod.GET) List<String> listAdministrators(ClientAppUserAccessToken token,
      @PathVariable("zone") String zone); }
V1ZoneResource { @ApiOperation(value = "[public] List administrators of the zone", notes = "List username of administrators of the zone") @RequiredScope(PUBLIC) @RequestMapping(value = "/{zone}/administrator/username", method = RequestMethod.GET) public List<String> listAdministrators(ClientAppUserAccessToken token, @PathVariable("zone") String zone) { return zoneService.listAdministratorsWithCache(Zone.valueOf(zone)); }  @ApiOperation(value = "[public] List all zones", notes = "List all available zones.") @RequiredScope(PUBLIC) @RequestMapping(value = "/all", method = RequestMethod.GET) List<V1ZoneDto> all(ClientAppUserAccessToken token); @ApiOperation(value = "[public] List administrators of the zone", notes = "List username of administrators of the zone") @RequiredScope(PUBLIC) @RequestMapping(value = "/{zone}/administrator/username", method = RequestMethod.GET) List<String> listAdministrators(ClientAppUserAccessToken token,
      @PathVariable("zone") String zone);  }