1
- Feature : Subresource support
1
+ Feature : Sub-resource support
2
2
In order to use a hypermedia API
3
3
As a client software developer
4
- I need to be able to retrieve embedded resources only as Subresources
4
+ I need to be able to retrieve embedded resources only as resources
5
5
6
6
@createSchema
7
- Scenario : Get subresource one to one relation
7
+ Scenario : Get sub-resource one to one relation
8
8
Given there is an answer "42" to the question "What's the answer to the Ultimate Question of Life, the Universe and Everything?"
9
9
When I send a "GET" request to "/questions/1/answer"
10
10
Then the response status code should be 200
@@ -25,14 +25,14 @@ Feature: Subresource support
25
25
"""
26
26
27
27
@createSchema
28
- Scenario : Get a non existent subresource
28
+ Scenario : Get a non existent sub-resource
29
29
Given there is an answer "42" to the question "What's the answer to the Ultimate Question of Life, the Universe and Everything?"
30
30
When I send a "GET" request to "/questions/999999/answer"
31
31
Then the response status code should be 404
32
32
And the response should be in JSON
33
33
34
34
@createSchema
35
- Scenario : Get recursive subresource one to many relation
35
+ Scenario : Get recursive sub-resource one to many relation
36
36
Given there is an answer "42" to the question "What's the answer to the Ultimate Question of Life, the Universe and Everything?"
37
37
When I send a "GET" request to "/questions/1/answer/related_questions"
38
38
And the response status code should be 200
@@ -57,7 +57,7 @@ Feature: Subresource support
57
57
"""
58
58
59
59
@createSchema
60
- Scenario : Get the subresource relation collection
60
+ Scenario : Get the sub-resource relation collection
61
61
Given there is a dummy object with a fourth level relation
62
62
When I send a "GET" request to "/dummies/1/related_dummies"
63
63
Then the response status code should be 200
@@ -147,7 +147,7 @@ Feature: Subresource support
147
147
"""
148
148
149
149
@createSchema
150
- Scenario : Get filtered embedded relation subresource collection
150
+ Scenario : Get filtered embedded relation sub-resource collection
151
151
Given there is a dummy object with a fourth level relation
152
152
When I send a "GET" request to "/dummies/1/related_dummies?name=Hello"
153
153
Then the response status code should be 200
@@ -224,7 +224,7 @@ Feature: Subresource support
224
224
"""
225
225
226
226
@createSchema
227
- Scenario : Get the subresource relation item
227
+ Scenario : Get the sub-resource relation item
228
228
Given there is a dummy object with a fourth level relation
229
229
When I send a "GET" request to "/dummies/1/related_dummies/2"
230
230
Then the response status code should be 200
@@ -252,7 +252,7 @@ Feature: Subresource support
252
252
}
253
253
"""
254
254
255
- Scenario : Create a dummy with a relation that is a subresource
255
+ Scenario : Create a dummy with a relation that is a sub-resource
256
256
When I add "Content-Type" header equal to "application/ld+json"
257
257
And I send a "POST" request to "/dummies" with body:
258
258
"""
@@ -265,7 +265,7 @@ Feature: Subresource support
265
265
And the response should be in JSON
266
266
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
267
267
268
- Scenario : Get the embedded relation subresource item at the third level
268
+ Scenario : Get the embedded relation sub-resource item at the third level
269
269
When I send a "GET" request to "/dummies/1/related_dummies/1/third_level"
270
270
And the response status code should be 200
271
271
And the response should be in JSON
@@ -284,7 +284,7 @@ Feature: Subresource support
284
284
}
285
285
"""
286
286
287
- Scenario : Get the embedded relation subresource item at the fourth level
287
+ Scenario : Get the embedded relation sub-resource item at the fourth level
288
288
When I send a "GET" request to "/dummies/1/related_dummies/1/third_level/fourth_level"
289
289
Then the response status code should be 200
290
290
And the response should be in JSON
@@ -302,7 +302,7 @@ Feature: Subresource support
302
302
"""
303
303
304
304
@createSchema
305
- Scenario : Get offers subresource from aggregate offers subresource
305
+ Scenario : Get offers sub-resource from aggregate offers sub-resource
306
306
Given I have a product with offers
307
307
When I send a "GET" request to "/dummy_products/2/offers/1/offers"
308
308
Then the response status code should be 200
@@ -327,7 +327,7 @@ Feature: Subresource support
327
327
}
328
328
"""
329
329
330
- Scenario : Get offers subresource from aggregate offers subresource
330
+ Scenario : Get offers sub-resource from aggregate offers sub-resource
331
331
When I send a "GET" request to "/dummy_aggregate_offers/1/offers"
332
332
Then the response status code should be 200
333
333
And the response should be in JSON
@@ -401,7 +401,7 @@ Feature: Subresource support
401
401
"""
402
402
403
403
@createSchema
404
- Scenario : The OneToOne subresource should be accessible from owned side
404
+ Scenario : The OneToOne sub-resource should be accessible from owned side
405
405
Given there is a RelatedOwnedDummy object with OneToOne relation
406
406
When I send a "GET" request to "/related_owned_dummies/1/owning_dummy"
407
407
Then the response status code should be 200
@@ -434,7 +434,7 @@ Feature: Subresource support
434
434
"""
435
435
436
436
@createSchema
437
- Scenario : The OneToOne subresource should be accessible from owning side
437
+ Scenario : The OneToOne sub-resource should be accessible from owning side
438
438
Given there is a RelatedOwningDummy object with OneToOne relation
439
439
When I send a "GET" request to "/related_owning_dummies/1/owned_dummy"
440
440
Then the response status code should be 200
0 commit comments