diff --git a/src/main/java/org/gridsuite/gateway/GatewayConfig.java b/src/main/java/org/gridsuite/gateway/GatewayConfig.java index 11e828f..5461a2f 100644 --- a/src/main/java/org/gridsuite/gateway/GatewayConfig.java +++ b/src/main/java/org/gridsuite/gateway/GatewayConfig.java @@ -55,6 +55,7 @@ public RouteLocator myRoutes(RouteLocatorBuilder builder, ApplicationContext con .route(p -> context.getBean(DynamicMarginCalculationServer.class).getRoute(p)) .route(p -> context.getBean(VoltageInitServer.class).getRoute(p)) .route(p -> context.getBean(ShortCircuitServer.class).getRoute(p)) + .route(p -> context.getBean(StateEstimationServer.class).getRoute(p)) .route(p -> context.getBean(StudyConfigServer.class).getRoute(p)) .route(p -> context.getBean(GeoDataServer.class).getRoute(p)) .route(p -> context.getBean(PccMinServer.class).getRoute(p)) diff --git a/src/main/java/org/gridsuite/gateway/endpoints/StateEstimationServer.java b/src/main/java/org/gridsuite/gateway/endpoints/StateEstimationServer.java new file mode 100644 index 0000000..9822bd3 --- /dev/null +++ b/src/main/java/org/gridsuite/gateway/endpoints/StateEstimationServer.java @@ -0,0 +1,35 @@ +/* + Copyright (c) 2026, RTE (http://www.rte-france.com) + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +package org.gridsuite.gateway.endpoints; + +import org.gridsuite.gateway.ServiceURIsConfig; +import org.springframework.stereotype.Component; + +/** + * @author David BRAQUART + */ +@Component(value = StateEstimationServer.ENDPOINT_NAME) +public class StateEstimationServer implements EndPointServer { + + public static final String ENDPOINT_NAME = "state-estimation"; + + private final ServiceURIsConfig servicesURIsConfig; + + public StateEstimationServer(ServiceURIsConfig servicesURIsConfig) { + this.servicesURIsConfig = servicesURIsConfig; + } + + @Override + public String getEndpointBaseUri() { + return servicesURIsConfig.getStateEstimationServerBaseUri(); + } + + @Override + public String getEndpointName() { + return ENDPOINT_NAME; + } +}