From bf4b85503a83e57ac6382f2de9a6b65e713a6dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=BCstermann?= <6011042+thokuest@users.noreply.github.com> Date: Tue, 29 Oct 2019 10:12:12 +0100 Subject: [PATCH] Update documentation link to Spring HATEOAS's method links Prefer link to official HATEOAS documentation rather than linking to the Github project README. --- src/main/asciidoc/customizing-json-output.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/asciidoc/customizing-json-output.adoc b/src/main/asciidoc/customizing-json-output.adoc index fa4ce9c03..0b7a08e3c 100644 --- a/src/main/asciidoc/customizing-json-output.adoc +++ b/src/main/asciidoc/customizing-json-output.adoc @@ -29,6 +29,8 @@ public RepresentationModelProcessor> personProcessor() { ---- ==== +IMPORTANT: The preceding example hard codes a link to `http://localhost:8080/people`. If you have a Spring MVC endpoint inside your app to which you wish to link, consider using Spring HATEOAS's https://docs.spring.io/spring-hateoas/docs/current/reference/html/#fundamentals.obtaining-links.builder.methods[`linkTo(...)`] method to avoid managing the URL. + IMPORTANT: The preceding example hard codes a link to `http://localhost:8080/people`. If you have a Spring MVC endpoint inside your app to which you wish to link, consider using Spring HATEOAS's https://github.com/spring-projects/spring-hateoas#building-links-pointing-to-methods[`linkTo(...)`] method to avoid managing the URL. [[customizing-sdr.customizing-json-output.adding-links]] == Adding Links