From 06c9c0ac3ccf8da44f13a1e03cd83a9d56439b6f Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Tue, 30 Jul 2019 12:18:53 -0500 Subject: [PATCH] Polishing --- basics/README.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basics/README.adoc b/basics/README.adoc index c5b48f1..6e91f64 100644 --- a/basics/README.adoc +++ b/basics/README.adoc @@ -82,13 +82,13 @@ operations. In REST, the "thing" being linked to is a *resource*. Resources provide both information as well as information on _how_ to retrieve and update that information. -Spring HATEOAS defines a generic `Resource` container that lets store any domain object (`Employee` in this example), and +Spring HATEOAS defines a generic `EntityModel` container uased to model resources that lets store any domain object (`Employee` in this example), and add additional links. -IMPORTANT: Spring HATEOAS's `Resource` and `Link` classes are *vendor neutral*. HAL is thrown around a lot, being the +IMPORTANT: Spring HATEOAS's `EntityModel` and `Link` classes are *vendor neutral*. HAL is thrown around a lot, being the default media type, but these classes can be used to render any media type. -A common convention is to create a factory used to convert `Employee` objects into `Resource` objects. Spring +A common convention is to create a factory used to convert `Employee` objects into `EntityModel` objects. Spring HATEOAS provides `SimpleIdentifiableResourceAssembler` as the simplest mechanism to perform these conversions. [source,java]