Skip to content

Commit 7cbff73

Browse files
Remove subrecource references
1 parent ab7df6c commit 7cbff73

35 files changed

+32
-430
lines changed

features/hal/absolute_url.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Feature: IRI should contain Absolute URL
8181
}
8282
"""
8383

84-
Scenario: I should be able to GET subresources with Absolute Urls
84+
Scenario: I should be able to GET resources with Absolute Urls
8585
Given I add "Accept" header equal to "application/hal+json"
8686
And I add "Content-Type" header equal to "application/json"
8787
And I send a "GET" request to "/absolute_url_relation_dummies/1/absolute_url_dummies"

features/hal/network_path.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Feature: IRI should contain network path
8080
}
8181
"""
8282

83-
Scenario: I should be able to GET subresources with network paths
83+
Scenario: I should be able to GET resources with network paths
8484
Given I add "Accept" header equal to "application/hal+json"
8585
And I send a "GET" request to "/network_path_relation_dummies/1/network_path_dummies"
8686
And the JSON should be equal to:

features/jsonapi/absolute_url.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Feature: IRI should contain Absolute URL
8585
}
8686
"""
8787

88-
Scenario: I should be able to GET subresources with Absolute Urls
88+
Scenario: I should be able to GET resources with Absolute Urls
8989
Given I add "Accept" header equal to "application/vnd.api+json"
9090
And I send a "GET" request to "/absolute_url_relation_dummies/1/absolute_url_dummies"
9191
And the JSON should be equal to:

features/jsonapi/network_path.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Feature: IRI should contain network path
8585
}
8686
"""
8787

88-
Scenario: I should be able to GET subresources with network paths
88+
Scenario: I should be able to GET resources with network paths
8989
Given I add "Accept" header equal to "application/vnd.api+json"
9090
And I send a "GET" request to "/network_path_relation_dummies/1/network_path_dummies"
9191
And the JSON should be equal to:

features/jsonld/absolute_url.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Feature: IRI should contain Absolute URL
6161
}
6262
"""
6363

64-
Scenario: I should be able to GET subresources with Absolute Urls
64+
Scenario: I should be able to GET resources with Absolute Urls
6565
Given I add "Accept" header equal to "application/ld+json"
6666
And I send a "GET" request to "/absolute_url_relation_dummies/1/absolute_url_dummies"
6767
And the JSON should be equal to:

features/jsonld/network_path.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Feature: IRI should contain network path
6363
}
6464
"""
6565

66-
Scenario: I should be able to GET subresources with network paths
66+
Scenario: I should be able to GET resources with network paths
6767
Given I add "Accept" header equal to "application/ld+json"
6868
And I add "Content-Type" header equal to "application/json"
6969
And I send a "GET" request to "/network_path_relation_dummies/1/network_path_dummies"

features/main/custom_identifier_with_subresource.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Feature: Using custom parent identifier for subresources
1+
Feature: Using custom parent identifier for resources
22
In order to use an hypermedia API
33
As a client software developer
4-
I need to be able to use custom identifiers and query subresources
4+
I need to be able to use custom identifiers and query resources
55

66
@createSchema
77
Scenario: Create a parent dummy

features/main/subresource.feature renamed to features/main/sub_resource.feature

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
Feature: Subresource support
1+
Feature: Sub-resource support
22
In order to use a hypermedia API
33
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
55

66
@createSchema
7-
Scenario: Get subresource one to one relation
7+
Scenario: Get sub-resource one to one relation
88
Given there is an answer "42" to the question "What's the answer to the Ultimate Question of Life, the Universe and Everything?"
99
When I send a "GET" request to "/questions/1/answer"
1010
Then the response status code should be 200
@@ -25,14 +25,14 @@ Feature: Subresource support
2525
"""
2626

2727
@createSchema
28-
Scenario: Get a non existent subresource
28+
Scenario: Get a non existent sub-resource
2929
Given there is an answer "42" to the question "What's the answer to the Ultimate Question of Life, the Universe and Everything?"
3030
When I send a "GET" request to "/questions/999999/answer"
3131
Then the response status code should be 404
3232
And the response should be in JSON
3333

3434
@createSchema
35-
Scenario: Get recursive subresource one to many relation
35+
Scenario: Get recursive sub-resource one to many relation
3636
Given there is an answer "42" to the question "What's the answer to the Ultimate Question of Life, the Universe and Everything?"
3737
When I send a "GET" request to "/questions/1/answer/related_questions"
3838
And the response status code should be 200
@@ -57,7 +57,7 @@ Feature: Subresource support
5757
"""
5858

5959
@createSchema
60-
Scenario: Get the subresource relation collection
60+
Scenario: Get the sub-resource relation collection
6161
Given there is a dummy object with a fourth level relation
6262
When I send a "GET" request to "/dummies/1/related_dummies"
6363
Then the response status code should be 200
@@ -147,7 +147,7 @@ Feature: Subresource support
147147
"""
148148

149149
@createSchema
150-
Scenario: Get filtered embedded relation subresource collection
150+
Scenario: Get filtered embedded relation sub-resource collection
151151
Given there is a dummy object with a fourth level relation
152152
When I send a "GET" request to "/dummies/1/related_dummies?name=Hello"
153153
Then the response status code should be 200
@@ -224,7 +224,7 @@ Feature: Subresource support
224224
"""
225225

226226
@createSchema
227-
Scenario: Get the subresource relation item
227+
Scenario: Get the sub-resource relation item
228228
Given there is a dummy object with a fourth level relation
229229
When I send a "GET" request to "/dummies/1/related_dummies/2"
230230
Then the response status code should be 200
@@ -252,7 +252,7 @@ Feature: Subresource support
252252
}
253253
"""
254254

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
256256
When I add "Content-Type" header equal to "application/ld+json"
257257
And I send a "POST" request to "/dummies" with body:
258258
"""
@@ -265,7 +265,7 @@ Feature: Subresource support
265265
And the response should be in JSON
266266
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
267267

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
269269
When I send a "GET" request to "/dummies/1/related_dummies/1/third_level"
270270
And the response status code should be 200
271271
And the response should be in JSON
@@ -284,7 +284,7 @@ Feature: Subresource support
284284
}
285285
"""
286286

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
288288
When I send a "GET" request to "/dummies/1/related_dummies/1/third_level/fourth_level"
289289
Then the response status code should be 200
290290
And the response should be in JSON
@@ -302,7 +302,7 @@ Feature: Subresource support
302302
"""
303303

304304
@createSchema
305-
Scenario: Get offers subresource from aggregate offers subresource
305+
Scenario: Get offers sub-resource from aggregate offers sub-resource
306306
Given I have a product with offers
307307
When I send a "GET" request to "/dummy_products/2/offers/1/offers"
308308
Then the response status code should be 200
@@ -327,7 +327,7 @@ Feature: Subresource support
327327
}
328328
"""
329329

330-
Scenario: Get offers subresource from aggregate offers subresource
330+
Scenario: Get offers sub-resource from aggregate offers sub-resource
331331
When I send a "GET" request to "/dummy_aggregate_offers/1/offers"
332332
Then the response status code should be 200
333333
And the response should be in JSON
@@ -401,7 +401,7 @@ Feature: Subresource support
401401
"""
402402

403403
@createSchema
404-
Scenario: The OneToOne subresource should be accessible from owned side
404+
Scenario: The OneToOne sub-resource should be accessible from owned side
405405
Given there is a RelatedOwnedDummy object with OneToOne relation
406406
When I send a "GET" request to "/related_owned_dummies/1/owning_dummy"
407407
Then the response status code should be 200
@@ -434,7 +434,7 @@ Feature: Subresource support
434434
"""
435435

436436
@createSchema
437-
Scenario: The OneToOne subresource should be accessible from owning side
437+
Scenario: The OneToOne sub-resource should be accessible from owning side
438438
Given there is a RelatedOwningDummy object with OneToOne relation
439439
When I send a "GET" request to "/related_owning_dummies/1/owned_dummy"
440440
Then the response status code should be 200

tests/Fixtures/FileConfigurations/bad_declaration.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/Fixtures/FileConfigurations/badpropertytype.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)