Skip to content
Discussion options

You must be logged in to vote

With Quarkus it (an OASFilter) can execute either at build time or run time, but with EAP it would execute at run time.

You could have something like this:

    @Override
    public void filterOpenAPI(OpenAPI openAPI) {
        openAPI.getPaths().setPathItems(openAPI.getPaths().getPathItems().entrySet().stream().map(e -> {
            return Map.entry("/prefix" + e.getKey(), e.getValue());
        }).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)));
}

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@cristalp
Comment options

@MikeEdgar
Comment options

@cristalp
Comment options

@MikeEdgar
Comment options

Answer selected by cristalp
@cristalp
Comment options

@MikeEdgar
Comment options

@cristalp
Comment options

@MikeEdgar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants