#1054 - Backport fix for unresolved references.
This commit is contained in:
@@ -4,6 +4,8 @@ Oliver Gierke; Greg Turnquist; Jay Bryant
|
|||||||
:revdate: {localdate}
|
:revdate: {localdate}
|
||||||
:toc: left
|
:toc: left
|
||||||
:hide-uri-scheme:
|
:hide-uri-scheme:
|
||||||
|
:base-dir: ../../../
|
||||||
|
|
||||||
|
|
||||||
This project provides some APIs to ease creating REST representations that follow the https://en.wikipedia.org/wiki/HATEOAS[HATEOAS] principle when working with Spring and especially Spring MVC. The core problem it tries to address is link creation and representation assembly.
|
This project provides some APIs to ease creating REST representations that follow the https://en.wikipedia.org/wiki/HATEOAS[HATEOAS] principle when working with Spring and especially Spring MVC. The core problem it tries to address is link creation and representation assembly.
|
||||||
|
|
||||||
@@ -381,18 +383,18 @@ The example listed above is the simplest version of traversal, where the rels ar
|
|||||||
|
|
||||||
There are more options to customize template parameters at each level.
|
There are more options to customize template parameters at each level.
|
||||||
|
|
||||||
[source,java,indent=0]
|
[source,java,indent=0, tabsize=2]
|
||||||
----
|
----
|
||||||
include::{baseDir}/src/test/java/org/springframework/hateoas/client/TraversonTest.java[tag=hop-with-param]
|
include::{base-dir}/src/test/java/org/springframework/hateoas/client/TraversonTest.java[tag=hop-with-param]
|
||||||
----
|
----
|
||||||
|
|
||||||
The static `rel(...)` function is a convenient way to define a single `Hop`. Using `.withParameter(key, value)` makes it simple to specify URI Template variables.
|
The static `rel(...)` function is a convenient way to define a single `Hop`. Using `.withParameter(key, value)` makes it simple to specify URI Template variables.
|
||||||
|
|
||||||
NOTE: `.withParameter()` returns a new Hop object that is chainable. You can string together as many `.withParameter` as you like. The result is a single Hop definition.
|
NOTE: `.withParameter()` returns a new Hop object that is chainable. You can string together as many `.withParameter` as you like. The result is a single Hop definition.
|
||||||
|
|
||||||
[source,java,indent=0]
|
[source,java,indent=0, tabsize=2]
|
||||||
----
|
----
|
||||||
include::{baseDir}/src/test/java/org/springframework/hateoas/client/TraversonTest.java[tag=hop-put]
|
include::{base-dir}/src/test/java/org/springframework/hateoas/client/TraversonTest.java[tag=hop-put]
|
||||||
----
|
----
|
||||||
|
|
||||||
It's also possible to load an entire `Map` of parameters via `.withParameters(Map)`.
|
It's also possible to load an entire `Map` of parameters via `.withParameters(Map)`.
|
||||||
|
|||||||
Reference in New Issue
Block a user