Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpringdocRouterFunctionDsl support #2590

Open
leandroBorgesFerreira opened this issue May 10, 2024 · 0 comments
Open

SpringdocRouterFunctionDsl support #2590

leandroBorgesFerreira opened this issue May 10, 2024 · 0 comments

Comments

@leandroBorgesFerreira
Copy link

leandroBorgesFerreira commented May 10, 2024

Hello,

I see that support for SpringdocRouterFunctionDsl got removed in version 1.5.11. From your changelog:

#1261 - Removal of SpringdocRouterFunctionDsl.

Do you plan to support it again?

Without this is it is not possible to use the functional endpoint in the way it was intended to be used in Kotlin. https://docs.spring.io/spring-framework/reference/web/webflux-functional.html (check the kotlin code) and the code can only be create in the Java way...

Something like this:

fun routes() = router {
    "/api".nest {
        this.GET("hi") {
            ServerResponse.ok().body("H")
        }
    }
}

Doesn't work with this library anymore, only like this:

fun routes(): RouterFunction<ServerResponse> =
    route()
        .GET(
            "/hi",
            { request ->
                ServerResponse.ok().body("Hi functional")
            },
            { ops -> ops.build() }
        )
        .build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant