Class ConfigValueController
java.lang.Object
es.kukenan.smartfi.microservice.backoffice.controller.ConfigValueController
Appointment Rest API controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuthority (role) required in order to be able to invoke API.static final StringAuthority (role) required in order to be able to invoke change application status.private static final StringBase path for backoffice Config Values API.private ConfigValueServiceConfiguration Value Service.private static final StringBase path for backoffice Config Values public API. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto>>>getConfigValues(String product) Get configuration values.org.springframework.http.ResponseEntity<Object>Get configuration values.org.springframework.http.ResponseEntity<Object>updateConfigValue(es.kukenan.smartfi.common.security.WalletAuthentication authentication, List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto> configValueDtos) Update configuration values.
-
Field Details
-
PAPI_CONFIG_VALUES_BASE_PATH
Base path for backoffice Config Values public API.- See Also:
-
API_CONFIG_VALUES_BASE_PATH
Base path for backoffice Config Values API.- See Also:
-
API_BACKOFFICE_AUTHORITIES
Authority (role) required in order to be able to invoke change application status.- See Also:
-
API_AUTHORITIES
Authority (role) required in order to be able to invoke API.- See Also:
-
configValueService
Configuration Value Service.
-
-
Constructor Details
-
ConfigValueController
public ConfigValueController()
-
-
Method Details
-
getConfigValuesOnboarding
@GetMapping(path="/papi/v1/backoffice/config-values", produces="application/json") public org.springframework.http.ResponseEntity<Object> getConfigValuesOnboarding()Get configuration values.- Returns:
- Configuration values list.
-
getConfigValues
@GetMapping(path="/papi/v1/backoffice/config-values-filtered", produces="application/json") public org.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto>>> getConfigValues(@RequestParam(name="product",required=false,defaultValue="") String product) Get configuration values.- Parameters:
product- product type- Returns:
- Configuration values list.
-
updateConfigValue
@PreAuthorize("(hasRole(\'ROLE_ACCESS_ADMIN\') and hasRole(\'ROLE_LEVEL_BACKOFFICE_ADMIN\')) or (hasRole(\'ROLE_ACCESS_MODERATOR\') and hasRole(\'ROLE_LEVEL_USER_MODERATOR\'))") @PutMapping(path="/papi/v1/backoffice/config-values-filtered", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Object> updateConfigValue(es.kukenan.smartfi.common.security.WalletAuthentication authentication, @RequestBody List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto> configValueDtos) Update configuration values.- Parameters:
authentication- user credentials.configValueDtos- configuration values to update.- Returns:
- ok.
-