File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/de/rwth/idsg/steve/config Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 25
25
import io .swagger .v3 .oas .models .info .License ;
26
26
import io .swagger .v3 .oas .models .security .SecurityRequirement ;
27
27
import io .swagger .v3 .oas .models .security .SecurityScheme ;
28
+ import io .swagger .v3 .oas .models .servers .Server ;
28
29
import org .springdoc .core .configuration .SpringDocConfiguration ;
29
30
import org .springdoc .core .properties .SwaggerUiConfigProperties ;
30
31
import org .springdoc .core .properties .SwaggerUiOAuthProperties ;
36
37
import org .springframework .context .annotation .Configuration ;
37
38
import org .springframework .context .annotation .Import ;
38
39
40
+ import java .util .List ;
41
+
39
42
/**
40
43
* https://stackoverflow.com/a/65557714
41
44
*
@@ -87,6 +90,8 @@ public OpenAPI apiDocs() {
87
90
)
88
91
.version (SteveConfiguration .CONFIG .getSteveVersion ())
89
92
)
93
+ // https://stackoverflow.com/a/68185254
94
+ .servers (List .of (new Server ().url ("/" ).description ("Default Server URL" )))
90
95
// define a security schema
91
96
.components (new Components ().addSecuritySchemes (securityName , securityScheme ))
92
97
// and activate it for all endpoints
You can’t perform that action at this time.
0 commit comments