Skip to content

Commit a3b2178

Browse files
committed
feat(eventing-service): init
1 parent 850b117 commit a3b2178

30 files changed

+1795
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# For documentation see https://jboss-container-images.github.io/openjdk/
2+
FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.22-1.1753981256@sha256:06d60e73be11d96b4cedc4bd1807e503a6196e9b01be9e4405b6b6d3b816202d
3+
4+
# Copy runnable jar to deployments
5+
COPY target/*.jar /deployments/application.jar

ticketing-eventing/eventing-service/pom.xml

Lines changed: 431 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mvn clean spring-boot:run -Dspring-boot.run.jvmArguments="-Dspring.profiles.active=local"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
mvn clean spring-boot:run -Dspring-boot.run.jvmArguments="-Dspring.profiles.active=local"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mvn clean spring-boot:run -Dspring-boot.run.jvmArguments="-Dspring.profiles.active=local,no-security"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
mvn clean spring-boot:run -Dspring-boot.run.jvmArguments="-Dspring.profiles.active=local,no-security"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<FindBugsFilter>
3+
<Match>
4+
<Bug pattern="CRLF_INJECTION_LOGS"/> <!-- Rule is ignored because JSON-based logging is used in operation -->
5+
</Match>
6+
<Match>
7+
<Bug pattern="EI_EXPOSE_REP2"/> <!-- Rule is ignored because spring uses dependency injection. The classes that are injected will be managed by Spring, meaning they do not need to be immutable. See https://docs.spring.io/spring-framework/reference/core/beans/dependencies/factory-collaborators.html -->
8+
</Match>
9+
</FindBugsFilter>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package de.muenchen.oss.dbs.ticketing.eventing.service;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
6+
7+
/**
8+
* Application class for starting the microservice.
9+
*/
10+
@SpringBootApplication
11+
@ConfigurationPropertiesScan
12+
@SuppressWarnings("PMD.UseUtilityClass")
13+
public class MicroServiceApplication {
14+
public static void main(final String[] args) {
15+
SpringApplication.run(MicroServiceApplication.class, args);
16+
}
17+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package de.muenchen.oss.dbs.ticketing.eventing.service.adapter.in.rest;
2+
3+
import de.muenchen.oss.dbs.ticketing.eventing.service.core.port.in.HandleEventInPort;
4+
import lombok.RequiredArgsConstructor;
5+
import org.springframework.stereotype.Service;
6+
import org.springframework.web.bind.annotation.PostMapping;
7+
import org.springframework.web.bind.annotation.RestController;
8+
9+
@Service
10+
@RestController("/api/")
11+
@RequiredArgsConstructor
12+
public class RestAdapter {
13+
private final HandleEventInPort handleEventInPort;
14+
15+
@PostMapping("event")
16+
void event() {
17+
18+
}
19+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package de.muenchen.oss.dbs.ticketing.eventing.service.configuration;
2+
3+
import io.swagger.v3.oas.models.OpenAPI;
4+
import io.swagger.v3.oas.models.info.Info;
5+
import lombok.RequiredArgsConstructor;
6+
import org.springframework.context.annotation.Bean;
7+
import org.springframework.context.annotation.Configuration;
8+
9+
@Configuration
10+
@RequiredArgsConstructor
11+
public class OpenAPIDocumentationConfiguration {
12+
13+
private final OpenAPIProperties openAPIProperties;
14+
15+
@Bean
16+
public OpenAPI customOpenAPI() {
17+
return new OpenAPI()
18+
.info(new Info().title(openAPIProperties.getName()).description(openAPIProperties.getDescription()).version(openAPIProperties.getVersion()));
19+
}
20+
}

0 commit comments

Comments
 (0)