Skip to content

Add Kotlin extensions for reactive link builders #2244

Open
@huberchrigu

Description

@huberchrigu

The MVC link builder has some great Kotlin extensions that reduce the boilerplate code quite a lot. But when using reactive, which is quite a valid use case when using Kotlin, there is no such support. Writing model assemblers for both reactive and coroutine controllers is cumbersome.
This pull request would simplify model assemblers in these cases: #2228.

Here's a sample diff of how I could change an existing reactive model assembler with the PR:
image

Here's a another example for the introduced coroutine assembler:
image
Also, in the controller, I do not have to add awaitSingle() after every call of the assembler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions