Commit ab944af9 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

DapiStatus is returned as entity

parent 2d4fc5e8
......@@ -113,11 +113,17 @@ public class ConfigurationController extends BaseController {
static class DapiStatus {
public boolean validConnection;
public DapiStatus(boolean validConnection) {
this.validConnection = validConnection;
@GetMapping(value = "/dapi/")
public Map<String, Object> getDapi() {
Map<String, Object> result = new HashMap<>();
result.put("validConnection", dapiConnector.isValidConnection());
return result;
public DapiStatus getDapi() {
return new DapiStatus(dapiConnector.isValidConnection());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment