Interface ModulePreferencesApi
@FeignClient(name="preferences-service",
qualifiers="modulePreferencesApi")
public interface ModulePreferencesApi
A ModulePreferencesApi defines the public REST API to manage ModulePreferences.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionfindByModule(String module) Find and return all existing ModulePreferences that belong to amodule.findByModuleAndKey(String module, String key) Find and return one ModulePreference that belongs to amoduleand has the givenkey.
-
Method Details
-
findByModule
@GetMapping(value="/v1/preferences", params="module") List<ModulePreferenceVO> findByModule(@RequestParam("module") String module) Find and return all existing ModulePreferences that belong to amodule.- Parameters:
module- The owning module of the preferences- Returns:
- A list of ModulePreferenceVO
-
findByModuleAndKey
@GetMapping(value="/v1/preferences", params={"module","key"}) ModulePreferenceVO findByModuleAndKey(@RequestParam("module") String module, @RequestParam("key") String key) Find and return one ModulePreference that belongs to amoduleand has the givenkey.- Parameters:
module- The owning module of the preferencekey- The key of the preference- Returns:
- One single instance
-