-
-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hydra): hydra:view with absolute iris (#6208)
* fix(hydra): hydra:view with absolute iris fixes #6096
- Loading branch information
Showing
6 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Feature: Collections with absolute IRIs support | ||
In order to retrieve large collections of resources | ||
As a client software developer | ||
I need to retrieve paged collections respecting the Hydra specification and with absolute iris | ||
|
||
@createSchema | ||
Scenario: Retrieve third page of collection with absolute iris | ||
Given there are 30 absoluteUrlDummy objects with a related absoluteUrlRelationDummy | ||
When I send a "GET" request to "/absolute_url_dummies?page=3" | ||
Then the response status code should be 200 | ||
And the response should be in JSON | ||
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8" | ||
And the JSON node "hydra:view" should be equal to: | ||
""" | ||
{ | ||
"@id": "http://example.com/absolute_url_dummies?page=3", | ||
"@type": "hydra:PartialCollectionView", | ||
"hydra:first": "http://example.com/absolute_url_dummies?page=1", | ||
"hydra:last": "http://example.com/absolute_url_dummies?page=10", | ||
"hydra:previous": "http://example.com/absolute_url_dummies?page=2", | ||
"hydra:next": "http://example.com/absolute_url_dummies?page=4" | ||
} | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters