Skip to content

Commit 78c4685

Browse files
m4ng0odrotbohm
authored andcommitted
DATAREST-790 - Fixed typos in the reference documentation.
Original pull request: #203.
1 parent 350a464 commit 78c4685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/asciidoc/overriding-sdr-response-handlers.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ This controller will be served from the same API base path defined in `Repositor
3939

4040
<1> This example uses constructor injection.
4141
<2> This handler plugs in a custom handler for a Spring Data finder method.
42-
<3> This handler is using the underlying repository to fetch data, but will tehn do some form of post processing before returning the final data set to the client.
42+
<3> This handler is using the underlying repository to fetch data, but will then do some form of post processing before returning the final data set to the client.
4343
<4> The results need to be wrapped up in a Spring HATEOAS `Resources` object to return a collection, but only a `Resource` for a single item.
4444
<5> Add a link back to this exact method as a "self" link.
4545
<6> Returning the collection using Spring MVC's `ResponseEntity` wrapper ensure the collection is properly wrapped and rendered in the proper accept type.
4646

47-
`Resources` is for a collection while `Resource` is for a single item. These types can be combined. If you know the links for each item in a collection, use `Resources<Resource<String>>` (or whatever the core domain type is). This lets you assembled links for each item as well as for the whole collection.
47+
`Resources` is for a collection while `Resource` is for a single item. These types can be combined. If you know the links for each item in a collection, use `Resources<Resource<String>>` (or whatever the core domain type is). This lets you assemble links for each item as well as for the whole collection.
4848

4949
IMPORTANT: In this example, the combined path will be `RepositoryRestConfiguration.getBasePath()` + `/scanners/search/listProducers`.
5050

0 commit comments

Comments
 (0)