|
1 | 1 | Feature: Retrieve data with Composite identifiers
|
2 | 2 | In order to retrieve relations with composite identifiers
|
3 | 3 | As a client software developer
|
4 |
| - I need to retrieve all collections |
| 4 | + I need to retrieve all collections |
5 | 5 |
|
6 | 6 | @createSchema
|
7 | 7 | @dropSchema
|
@@ -77,15 +77,38 @@ Feature: Retrieve data with Composite identifiers
|
77 | 77 | """
|
78 | 78 |
|
79 | 79 | @createSchema
|
80 |
| - @dropSchema |
81 | 80 | Scenario: Get the first composite relation
|
82 | 81 | Given there are Composite identifier objects
|
83 | 82 | When I send a "GET" request to "/composite_relations/compositeItem=1;compositeLabel=1"
|
84 | 83 | Then the response status code should be 200
|
85 | 84 | And the response should be in JSON
|
86 | 85 | And the header "Content-Type" should be equal to "application/ld+json"
|
| 86 | + And the JSON should be equal to: |
| 87 | + """ |
| 88 | + { |
| 89 | + "@context": "\/contexts\/CompositeRelation", |
| 90 | + "@id": "\/composite_relations\/compositeItem=1;compositeLabel=1", |
| 91 | + "@type": "CompositeRelation", |
| 92 | + "value": "somefoobardummy" |
| 93 | + } |
| 94 | + """ |
| 95 | + |
| 96 | + Scenario: Get the first composite relation with a reverse identifiers order |
| 97 | + Given there are Composite identifier objects |
| 98 | + When I send a "GET" request to "/composite_relations/compositeLabel=1;compositeItem=1" |
| 99 | + Then the response status code should be 200 |
| 100 | + And the response should be in JSON |
| 101 | + And the header "Content-Type" should be equal to "application/ld+json" |
| 102 | + And the JSON should be equal to: |
| 103 | + """ |
| 104 | + { |
| 105 | + "@context": "\/contexts\/CompositeRelation", |
| 106 | + "@id": "\/composite_relations\/compositeItem=1;compositeLabel=1", |
| 107 | + "@type": "CompositeRelation", |
| 108 | + "value": "somefoobardummy" |
| 109 | + } |
| 110 | + """ |
87 | 111 |
|
88 |
| - @createSchema |
89 | 112 | @dropSchema
|
90 | 113 | Scenario: Get first composite item
|
91 | 114 | Given there are Composite identifier objects
|
|
0 commit comments