Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit fab070b8 authored by Marco Amoia's avatar Marco Amoia
Browse files

Merge branch 'release' into 'main'

Update 1.4.0

See merge request !102
parents 48288847 fd9b6b31
Branches
Tags
2 merge requests!107Feature/update 1.6.0,!102Update 1.4.0
Pipeline #301431 failed
# SIMPL Cloud Gateway - Tier 1
Mediates the traffic from the Internet to the tier 1 agent components of a participant agent (Keycloak, Onboarding, Users Roles).
\ No newline at end of file
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.8.0] - 2024-12-02
### Added
- Added handling for business events logging
### Changed
- private/public prefixes have been removed.
- Route GET onboarding/participant-type/* made public.
## [0.7.0] - 2024-11-11
### Added
- Added authentication provider route
- Business logging
\ No newline at end of file
PROJECT_VERSION_NUMBER="1.3.1"
\ No newline at end of file
PROJECT_VERSION_NUMBER="1.4.0"
......@@ -5,12 +5,12 @@
<parent>
<groupId>eu.europa.ec.simpl</groupId>
<artifactId>simpl-parent</artifactId>
<version>1.3.0</version>
<version>1.4.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<artifactId>tier1-gateway</artifactId>
<version>1.3.1</version>
<version>1.4.0</version>
<packaging>jar</packaging>
<name>Tier 1 Gateway</name>
......
......@@ -6,5 +6,5 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties("microservices-info")
public record VersionProperties(List<MicroserviceInfo> microservices) {
public record MicroserviceInfo(String name, URI url) {}
public record MicroserviceInfo(String name, URI internalUrl, URI detailUrl) {}
}
......@@ -12,7 +12,7 @@ import org.springframework.web.client.RestClient;
public class VersionSupplierImpl implements VersionSupplier {
private static final String INFO_VERSION_PATH = "/info/version";
private static final String INFO_VERSION_PATH = "info/version";
private static final String UNKNOWN = "UNKNOWN";
private final VersionProperties.MicroserviceInfo properties;
......@@ -27,7 +27,7 @@ public class VersionSupplierImpl implements VersionSupplier {
public ComponentVersionDTO getVersion() {
return new ComponentVersionDTO()
.setName(properties.name())
.setDetails(properties.url().resolve(INFO_VERSION_PATH))
.setDetails(properties.detailUrl().resolve(INFO_VERSION_PATH))
.setVersion(getVersionNumber());
}
......@@ -44,6 +44,6 @@ public class VersionSupplierImpl implements VersionSupplier {
private ApplicationInfoApi getApplicationInfoApi(
VersionProperties.MicroserviceInfo microserviceInfo, RestClient.Builder builder) {
return ExchangeFactory.buildExchange(microserviceInfo.url(), builder, ApplicationInfoApi.class);
return ExchangeFactory.buildExchange(microserviceInfo.internalUrl(), builder, ApplicationInfoApi.class);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment