Skip to content

Commit c7fc024

Browse files
committed
Amended to describe HAL hypermedia format since we use embed: true.
1 parent 540bef3 commit c7fc024

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ get 'product/:id' do
4949
end
5050
```
5151

52-
Presenting collections works the same way.
52+
Presenting collections works the same way. The following example returns an embedded set of products in the HAL Hypermedia format.
5353

5454
```ruby
5555
module ProductsRepresenter
56-
include Roar::Representer::JSON
56+
include Roar::Representer::JSON::HAL
5757
include Roar::Representer::Feature::Hypermedia
5858
include Grape::Roar::Representer
5959

0 commit comments

Comments
 (0)