code: @RequestMapping(value = "search/{token:.*}", method = RequestMethod.GET)
      public Resources<PermissionTarget> searchPermissionTargets(@PathVariable String token) {
          return Resources.of(
                  accountService.searchPermissionTargets(token),
                  uri(on(PermissionController.class).searchPermissionTargets(token))
          );
      }
docs: Looking for a permission target