Skip to content

Commit

Permalink
Add @ApplicationScoped to generated api to allow mocking api for test…
Browse files Browse the repository at this point in the history
…ing (#87)
  • Loading branch information
miguelchico committed Jun 23, 2022
1 parent 12344f4 commit 980cbbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deployment/src/main/resources/templates/api.qute
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.MediaType;

import javax.enterprise.context.ApplicationScoped;

import io.quarkiverse.openapi.generator.annotations.GeneratedClass;
import io.quarkiverse.openapi.generator.annotations.GeneratedMethod;
import io.quarkiverse.openapi.generator.annotations.GeneratedParam;
Expand All @@ -37,6 +39,7 @@ import io.quarkiverse.openapi.generator.annotations.GeneratedParam;
@RegisterProvider(CompositeAuthenticationProvider.class)
@RegisterClientHeaders(AuthenticationPropagationHeadersFactory.class)
{/if}
@ApplicationScoped
public interface {classname} {

{#for op in operations.operation}
Expand Down

0 comments on commit 980cbbe

Please sign in to comment.