@Bean
    public GroupedOpenApi createRestApi() {
        Parameter commonParam = new Parameter()
                .in(TOKEN_PARAMETER_TYPE)
                .name(Constants.X_ACCESS_TOKEN)
                .description(TOKEN_DESCRIPTION)
                .required(false)
                .schema(new StringSchema());

        return GroupedOpenApi.builder()
                .group("default")
                .addOperationCustomizer((operation, handlerMethod) -> {
                    operation.addParametersItem(commonParam);
                    return operation;
                })
                .packagesToScan("org.apache.shenyu.examples.http.controller")
                .build();
    }
Configure The OpenAPI with Springdoc.

@return GroupedOpenApi {@linkplain GroupedOpenApi}
shenyu-examples/shenyu-examples-http-swagger3/src/main/java/org/apache/shenyu/examples/http/config/SwaggerConfiguration.java