Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/org/gridsuite/gateway/GatewayConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public RouteLocator myRoutes(RouteLocatorBuilder builder, ApplicationContext con
.route(p -> context.getBean(StateEstimationOrchestratorServer.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))
.build();
}
}
3 changes: 3 additions & 0 deletions src/main/java/org/gridsuite/gateway/ServiceURIsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,7 @@ public class ServiceURIsConfig {

@Value("${gridsuite.services.user-identity-server.base-uri:http://user-identity-server/}")
String userIdentityServerBaseUri;

@Value("${gridsuite.services.pcc-min-server.base-uri:http://pcc-min-server/}")
String pccMinServerBaseUri;
}
35 changes: 35 additions & 0 deletions src/main/java/org/gridsuite/gateway/endpoints/PccMinServer.java
Original file line number Diff line number Diff line change
@@ -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 Maissa SOUISSI <maissa.souissi at rte-france.com>
*/
@Component(value = PccMinServer.ENDPOINT_NAME)
public class PccMinServer implements EndPointServer {

public static final String ENDPOINT_NAME = "pcc-min";

private final ServiceURIsConfig servicesURIsConfig;

public PccMinServer(ServiceURIsConfig servicesURIsConfig) {
this.servicesURIsConfig = servicesURIsConfig;
}

@Override
public String getEndpointBaseUri() {
return servicesURIsConfig.getPccMinServerBaseUri();
}

@Override
public String getEndpointName() {
return ENDPOINT_NAME;
}
}
2 changes: 2 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ gridsuite:
base-uri: http://localhost:5035
user-identity-server:
base-uri: http://localhost:5034
pcc-min-server:
base-uri: http://localhost:6042

# Note: The issuer configured in Docker Compose must match the one used here. Using localhost instead will not work.
allowed-issuers: http://172.17.0.1:9090
Expand Down