Skip to content

Commit 2b2af36

Browse files
thokuestodrotbohm
authored andcommitted
Update documentation link to Spring HATEOAS's method links
Prefer link to official HATEOAS documentation rather than linking to the Github project README.
1 parent 4fbb148 commit 2b2af36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/asciidoc/customizing-json-output.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public RepresentationModelProcessor<EntityModel<Person>> personProcessor() {
2929
----
3030
====
3131

32+
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.
33+
3234
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.
3335
[[customizing-sdr.customizing-json-output.adding-links]]
3436
== Adding Links

0 commit comments

Comments
 (0)