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

Create WebFlux + Boot example #27

Open
gregturn opened this issue Jul 17, 2019 · 1 comment
Open

Create WebFlux + Boot example #27

gregturn opened this issue Jul 17, 2019 · 1 comment

Comments

@gregturn
Copy link
Contributor

No description provided.

@SchlammSpringer
Copy link

SchlammSpringer commented Aug 13, 2019

That would be very interessting.
Especially it looks like that
X-Forwarded-Prefix:
is no more added to Link in such a scenario

spring:
  main:
    web-application-type: reactive
server:
  forward-headers-strategy: native

Perhaps this could be some example:

private fun wrapInHateoas(someObject: SomeObject): Mono<EntityModel<SomeObject>> =
      someObject
          .toMono()
          .zipWith(linkTo(controller.getSomeObject(someObject.id)).withSelfRel().toMono()) {
              some: SomeObject, link: Link -> EntityModel(some, link)
            }

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

2 participants