File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -301,14 +301,14 @@ springdoc.swagger-ui.path= /swagger-ui/api-docs.html
301
301
=== How can I customise the OpenAPI object?
302
302
* You can write your own implementation of `OpenApiCustomizer`.
303
303
* An example is available on:
304
- ** link:https://github.com/springdoc/springdoc-openapi/blob/master /springdoc-openapi-webmvc-core /src/test/java/test/org/springdoc/api/app39/SpringDocApp39Test .java[https://github.com/springdoc/springdoc-openapi/blob/master /springdoc-openapi-webflux-core /src/test/java/test/org/springdoc/api/app39/SpringDocTestApp.java, window="_blank"]
304
+ ** link:https://github.com/springdoc/springdoc-openapi/blob/main /springdoc-openapi-starter- webmvc-api /src/test/java/test/org/springdoc/api/v31/ app39/SpringDocTestApp .java[https://github.com/springdoc/springdoc-openapi/blob/main /springdoc-openapi-starter-webmvc-api /src/test/java/test/org/springdoc/api/v31 /app39/SpringDocTestApp.java, window="_blank"]
305
305
306
306
[source,java]
307
307
----
308
308
@Bean
309
- public OpenApiCustomiser consumerTypeHeaderOpenAPICustomiser () {
310
- return openApi -> openApi.getPaths().values().stream().flatMap(pathItem -> pathItem.readOperations().stream())
311
- .forEach(operation -> operation.addParametersItem(new HeaderParameter().$ref("#/components/parameters/myConsumerTypeHeader ")));
309
+ public OpenApiCustomizer customerGlobalHeaderOpenApiCustomizer () {
310
+ return openApi -> openApi.getPaths().values().stream().flatMap(pathItem -> pathItem.readOperations().stream())
311
+ .forEach(operation -> operation.addParametersItem(new HeaderParameter().$ref("#/components/parameters/myGlobalHeader ")));
312
312
}
313
313
----
314
314
You can’t perform that action at this time.
0 commit comments