Skip to content

Commit 980cbbe

Browse files
authored
Add @ApplicationScoped to generated api to allow mocking api for testing (#87)
1 parent 12344f4 commit 980cbbe

File tree

1 file changed

+3
-0
lines changed
  • deployment/src/main/resources/templates

1 file changed

+3
-0
lines changed

deployment/src/main/resources/templates/api.qute

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import javax.ws.rs.*;
2020
import javax.ws.rs.core.Response;
2121
import javax.ws.rs.core.MediaType;
2222

23+
import javax.enterprise.context.ApplicationScoped;
24+
2325
import io.quarkiverse.openapi.generator.annotations.GeneratedClass;
2426
import io.quarkiverse.openapi.generator.annotations.GeneratedMethod;
2527
import io.quarkiverse.openapi.generator.annotations.GeneratedParam;
@@ -37,6 +39,7 @@ import io.quarkiverse.openapi.generator.annotations.GeneratedParam;
3739
@RegisterProvider(CompositeAuthenticationProvider.class)
3840
@RegisterClientHeaders(AuthenticationPropagationHeadersFactory.class)
3941
{/if}
42+
@ApplicationScoped
4043
public interface {classname} {
4144

4245
{#for op in operations.operation}

0 commit comments

Comments
 (0)