Skip to content

Commit d4cd1fa

Browse files
authored
Refactor security scheme annotation for Product API
Updated the chapter to remove the unnecessary `@SecuritySchemes` wrapper annotation, as @Securityscheme is repeatable and can be used directly. The example now shows the simplified syntax.
1 parent 7db1aa3 commit d4cd1fa

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

modules/ROOT/pages/chapter04/chapter04.adoc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -653,15 +653,13 @@ package io.microprofile.tutorial.store.product;
653653
description = "Product API with multiple security schemes"
654654
)
655655
)
656-
@SecuritySchemes({
657-
@SecurityScheme(
658-
securitySchemeName = "bearer",
659-
type = SecuritySchemeType.HTTP,
660-
description = "JWT Bearer token authentication",
661-
scheme = "bearer",
662-
bearerFormat = "JWT"
663-
)
664-
})
656+
@SecurityScheme(
657+
securitySchemeName = "bearer",
658+
type = SecuritySchemeType.HTTP,
659+
description = "JWT Bearer token authentication",
660+
scheme = "bearer",
661+
bearerFormat = "JWT"
662+
)
665663
public class ProductRestApplication extends Application {
666664
}
667665
----

0 commit comments

Comments
 (0)