File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -288,8 +288,10 @@ ResponseEntity<String> testme() {
288288``` java
289289@Bean
290290 public OpenAPI customOpenAPI() {
291- return new OpenAPI (). components(new Components (). addSecuritySchemes(" bearer-key" ,
292- new SecurityScheme (). type(SecurityScheme . Type . HTTP ). scheme(" bearer" ). bearerFormat(" JWT" )));
291+ return new OpenAPI ()
292+ .components(new Components ()
293+ .addSecuritySchemes(" bearer-key" ,
294+ new SecurityScheme (). type(SecurityScheme . Type . HTTP ). scheme(" bearer" ). bearerFormat(" JWT" )));
293295}
294296```
295297
@@ -366,15 +368,15 @@ public OpenAPI customOpenAPI() {
366368 return new OpenAPI (). components(new Components ()
367369 .addSecuritySchemes(" basicScheme" , new SecurityScheme ()
368370 .type(SecurityScheme . Type . HTTP ). scheme(" basic" ))). info(new Info (). title(" Custom API" )
369- .version(" 100" )). addTagsItem(new Tag (). name(" mytag" ));
371+ .version(" 100" )). addTagsItem(new Tag (). name(" mytag" ));
370372}
371373```
372374
373375### How is server url generated ?
374376- Generating automatically server url may be useful, if the documentation is not present.
375377- If the server annotations are present, they will be used instead.
376378
377- ###How can I expose the api-docs endpoints without using the ` swagger-ui ` ?
379+ ### How can I expose the api-docs endpoints without using the ` swagger-ui ` ?
378380- You should use the ` springdoc-openapi-core ` dependency only:
379381
380382``` xml
You can’t perform that action at this time.
0 commit comments