File tree Expand file tree Collapse file tree
src/main/java/com/dddheroes/heroesofddd Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 <properties >
3030 <axon .version>4.11.1</axon .version>
3131 <java .version>23</java .version>
32+ <spring-doc .version>2.8.5</spring-doc .version>
3233 <spring-modulith .version>1.3.2</spring-modulith .version>
3334 </properties >
3435 <dependencies >
6566 <artifactId >axon-spring-boot-starter</artifactId >
6667 </dependency >
6768
69+ <dependency >
70+ <groupId >org.springdoc</groupId >
71+ <artifactId >springdoc-openapi-starter-webmvc-ui</artifactId >
72+ <version >${spring-doc.version} </version >
73+ </dependency >
74+
6875 <!-- Runtime dependencies -->
6976 <dependency >
7077 <groupId >org.springframework.boot</groupId >
Original file line number Diff line number Diff line change 1+ package com .dddheroes .heroesofddd ;
2+
3+ import io .swagger .v3 .oas .models .OpenAPI ;
4+ import io .swagger .v3 .oas .models .info .Info ;
5+ import org .springframework .context .annotation .Bean ;
6+ import org .springframework .context .annotation .Configuration ;
7+
8+ @ Configuration
9+ public class OpenApiConfiguration {
10+
11+ @ Bean
12+ public OpenAPI heroesOfDddOpenAPI () {
13+ return new OpenAPI ()
14+ .info (new Info ()
15+ .title ("Heroes of Domain-Driven Design API" )
16+ .description ("REST API for Heroes of Domain-Driven Design game" )
17+ .version ("v1.0.0" )
18+ );
19+ }
20+ }
You can’t perform that action at this time.
0 commit comments