From 12f88dd4aec39cac4b30f4f2aee8f63f07861d99 Mon Sep 17 00:00:00 2001 From: Nicolas Filotto Date: Tue, 23 Feb 2021 16:20:17 +0100 Subject: [PATCH] Update docs/src/main/asciidoc/rest-json.adoc Co-authored-by: Georgios Andrianakis --- docs/src/main/asciidoc/rest-json.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/rest-json.adoc b/docs/src/main/asciidoc/rest-json.adoc index d982ebd9ccaf36..b9b50f928ea423 100644 --- a/docs/src/main/asciidoc/rest-json.adoc +++ b/docs/src/main/asciidoc/rest-json.adoc @@ -608,7 +608,7 @@ An explicit CDI scope annotation (`@RequestScoped`, `@ApplicationScoped`, etc.) == Include/Exclude JAX-RS classes with build time conditions Quarkus enables the inclusion or exclusion of JAX-RS Resources, Providers and Features directly thanks to build time conditions in the same that it does for CDI beans. -Indeed, the different JAX-RS classes can be annotated with profile conditions (`@io.quarkus.arc.profile.IfBuildProfile` or `@io.quarkus.arc.profile.UnlessBuildProfile`) and/or with property conditions (`io.quarkus.arc.properties.IfBuildProperty` or `io.quarkus.arc.properties.UnlessBuildProperty`) to indicate to Quarkus at build time under which conditions the JAX-RS classes should be included. +Thus, the various JAX-RS classes can be annotated with profile conditions (`@io.quarkus.arc.profile.IfBuildProfile` or `@io.quarkus.arc.profile.UnlessBuildProfile`) and/or with property conditions (`io.quarkus.arc.properties.IfBuildProperty` or `io.quarkus.arc.properties.UnlessBuildProperty`) to indicate to Quarkus at build time under which conditions these JAX-RS classes should be included. In the following example, Quarkus includes the endpoint `sayHello` if and only if the build profile `app1` has been enabled.