class ServerController {

    @Resource(name = "${registry.type}" + "RegistryService")
    private RegistryService registryService;

    /**
     * 获取所有group分组名称
     *
     * @return
     */
    @RequestMapping(value = "/groups", method = RequestMethod.GET)
    public ResponseEntity<List<String>> getAllGroups() {
        List<String> result = registryService.getGroups();
        return new ResponseEntity<List<String>>(result, HttpStatus.OK);
    }

    /**
     * 获取group的所有service接口类名
     *
     * @param group
     * @return
     */
    @RequestMapping(value = "/{group}/services", method = RequestMethod.GET)
    public ResponseEntity<List<String>> getServicesByGroup(@PathVariable("group") String group) {
        if (StringUtils.isEmpty(group)) {
            return new ResponseEntity<List<String>>(HttpStatus.BAD_REQUEST);
        }

        List<String> services = registryService.getServicesByGroup(group);
        return new ResponseEntity<List<String>>(services, HttpStatus.OK);
    }

    /**
     * 获取group下某个service的节点信息
     *
     * @param group
     * @param service
     * @return
     */
    @RequestMapping(value = "/{group}/{service}/{nodeType}/nodes", method = RequestMethod.GET)
    public ResponseEntity<List<JSONObject>> getServiceNodes(@PathVariable("group") String group, @PathVariable("service") String service, @PathVariable("nodeType") String nodeType) {
        if (StringUtils.isEmpty(group) || StringUtils.isEmpty(service)) {
            return new ResponseEntity<List<JSONObject>>(HttpStatus.BAD_REQUEST);
        }

        List<JSONObject> result = registryService.getNodes(group, service, nodeType);
        return new ResponseEntity<List<JSONObject>>(result, HttpStatus.OK);
    }

    /**
     * 获取group下所有service的节点信息
     *
     * @param group
     * @return
     */
    @RequestMapping(value = "/{group}/nodes", method = RequestMethod.GET)
    public ResponseEntity<List<JSONObject>> getAllNodes(@PathVariable("group") String group) {<FILL_FUNCTION_BODY>}
}

        if (StringUtils.isEmpty(group)) {
            return new ResponseEntity<List<JSONObject>>(HttpStatus.BAD_REQUEST);
        }

        List<JSONObject> results = registryService.getAllNodes(group);
        return new ResponseEntity<List<JSONObject>>(results, HttpStatus.OK);
    
<no_super_class>