@RestController public class ServerConfigsResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ServerConfigService |
serverConfigService |
| Constructor and Description |
|---|
ServerConfigsResource() |
| Modifier and Type | Method and Description |
|---|---|
protected ServerConfigRepresentation |
createServerConfigRepresentation(ServerConfig serverConfig) |
ServerConfigRepresentation |
getDefaultServerConfig(Integer endpointTypeCode) |
List<ServerConfigRepresentation> |
getServers() |
void |
updateServer(String serverId,
ServerConfigRepresentation configRepresentation) |
@Autowired protected ServerConfigService serverConfigService
@GetMapping(value="/rest/server-configs",
produces="application/json")
public List<ServerConfigRepresentation> getServers()
@GetMapping(value="/rest/server-configs/default/{endpointTypeCode}",
produces="application/json")
@ResponseStatus(value=OK)
@ResponseBody
public ServerConfigRepresentation getDefaultServerConfig(@PathVariable
Integer endpointTypeCode)
@PutMapping(value="/rest/server-configs/{serverId}",
produces="application/json")
@ResponseStatus(value=OK)
public void updateServer(@PathVariable
String serverId,
@RequestBody
ServerConfigRepresentation configRepresentation)
protected ServerConfigRepresentation createServerConfigRepresentation(ServerConfig serverConfig)
Copyright © 2022 Flowable. All rights reserved.