code: @RequestMapping(value = "/{type:.*}", method = RequestMethod.GET)
      public <T> Resource<T> getSettings(@PathVariable String type) {
          securityService.checkGlobalFunction(GlobalSettings.class);
          T settings = settingsManagers.stream()
                  .filter(candidate -> StringUtils.equals(
                          type,
                          getSettingsManagerName(candidate)
                  ))
                  .map(manager -> (T) manager.getSettings())
                  .findFirst()
                  .orElse(null);
          if (settings != null) {
              return Resource.of(
                      settings,
                      uri(on(getClass()).getSettings(type))
              );
          } else {
              throw new SettingsManagerNotFoundException(type);
          }
      }
docs: Gets settings