@RestController @RequestMapping(value="/api/config-params") public class DbConfigurationController extends AbstractOhfController
Modifier and Type | Field and Description |
---|---|
static String |
REST_URI |
BASE_PATH
Constructor and Description |
---|
DbConfigurationController() |
Modifier and Type | Method and Description |
---|---|
PagingWrapper<DbConfigurationParamRpc> |
findAll(org.springframework.data.domain.Pageable pageable)
Gets list of all configuration parameters.
|
DbConfigurationParamRpc |
getByCode(String code)
Gets configuration parameter by code.
|
void |
update(String code,
DbConfigurationParamRpc paramRpc,
org.springframework.validation.BindingResult errors)
Updates existing configuration parameter.
|
getMessage, getMessageEN, getMessageSource, pageContentList
public static final String REST_URI
@RequestMapping(value="", method=GET, produces={"application/xml","application/json"}) @ResponseStatus(value=OK) @ResponseBody public PagingWrapper<DbConfigurationParamRpc> findAll(org.springframework.data.domain.Pageable pageable)
@RequestMapping(value="/{code:.+}", method=GET, produces={"application/xml","application/json"}) @ResponseStatus(value=OK) @ResponseBody public DbConfigurationParamRpc getByCode(@PathVariable String code) throws NoDataFoundException
code
- The configuration parameter codeNoDataFoundException
- if entity not found@RequestMapping(value="/{code:.+}", method=PUT, produces={"application/xml","application/json"}) @ResponseStatus(value=NO_CONTENT) @ResponseBody public void update(@PathVariable String code, @RequestBody DbConfigurationParamRpc paramRpc, org.springframework.validation.BindingResult errors) throws ValidationException, NoDataFoundException
paramRpc
- The paramRpcValidationException
- if input object has wrong valuesNoDataFoundException
- entity not found for updateCopyright © 2018 Pivotal Software, Inc.. All rights reserved.