Closed
Description
I found the docRouter function and the DSL unintuitive to use (in contrast to the normal router-functions -- I will open seperate issues regarding the usage).
So i was looking to find running examples in the tests.
Surprisingly there are none, all the tests only use the RequestMapping-Annotation.
Which means org.springdoc.kotlin.SpringdocRouterFunctionDsl is basically untestet, so i'm not surprised that the example mentioned therein does not work.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
bnasslahsen commentedon Sep 10, 2021
@snv,
SpringdocRouterFunctionDsl
, will be removed...it doesn't respect the quality requirements.
Use the code samples are available on GITHUB of demos:
And some of the project tests: (from app83 to app90) or others using
RouterFunction
:Removal of SpringdocRouterFunctionDsl. Fixes #1261.
snv commentedon Sep 10, 2021
Thanks for the pointers to the relevant examples, but i was looking for examples specifically using Functional Endpoints with kotlin.
Kotlins ability to define & use nicer DSLs makes all the difference, IMO: With the kotlin DSL i prefer Functional Endpoints, but with the java syntax the Annotated Endpoints are the more readable variant.
It's a bit sad to see that the DSL will be removed rather than enhanced.
snv commentedon Sep 10, 2021
Since the
SpringdocRouterFunctionDsl
gets removed, what is the recommended way to use router functions with kotlin instead?I do hope for not having to use
@RouterOperation
bnasslahsen commentedon Sep 10, 2021
@snv,
see the samples...
You have also, the functional syntax available.
Removal of SpringdocRouterFunctionDsl. Fixes springdoc#1261.