You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,17 @@ Breaking changes:
89
89
* Serializer: `skip_null_values` now defaults to `true`
90
90
* Metadata: `Patch` is added to the automatic CRUD
91
91
92
+
## v2.7.5
93
+
94
+
### Bug fixes
95
+
96
+
*[096ac119a](https://github.com/api-platform/core/commit/096ac119a5126bdc5e7877172a033d7cdaa28983) fix(metadata): keep configured uri variables (#5217)
97
+
*[2b2d468f0](https://github.com/api-platform/core/commit/2b2d468f06a63ecfa4928d5d631953acb624c181) fix(metadata): operations must inherit from resource and defaults
98
+
*[2cb3b4272](https://github.com/api-platform/core/commit/2cb3b42725105aaf34dc9d71d2c03e156acd5833) fix(serializer): use iri from $context if defined (#5201)
99
+
*[39398579e](https://github.com/api-platform/core/commit/39398579e32976b5b4b0219da98fdb35629a35ad) fix(symfony): definition when mercure is not installed (#5206)
100
+
*[e9c7e4abb](https://github.com/api-platform/core/commit/e9c7e4abb683bb830a61712a8b63b8063e015b13) fix(serializer): avoid call to legacy iri converter with non-resource class (#5219)
101
+
*[ebaad51b2](https://github.com/api-platform/core/commit/ebaad51b2ce173b6c59582dcc6fb311f1f4b7fa9) fix(serializer): read groups off the root operation (#5196)
Copy file name to clipboardExpand all lines: features/main/attribute_resource.feature
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
+
@php8
2
+
@v3
3
+
@!mysql
4
+
@!mongodb
1
5
Feature: Resource attributes
2
6
In order to use the Resource attribute
3
7
As a developer
4
8
I should be able to fetch data from a state provider
5
9
6
-
@php8
7
-
@!mysql
8
-
@!mongodb
9
10
Scenario: Retrieve a Resource collection
10
11
When I add "Content-Type" header equal to "application/ld+json"
11
12
And I send a "GET" request to "/attribute_resources"
@@ -35,9 +36,6 @@ Feature: Resource attributes
35
36
}
36
37
"""
37
38
38
-
@php8
39
-
@!mysql
40
-
@!mongodb
41
39
Scenario: Retrieve the first resource
42
40
When I add "Content-Type" header equal to "application/ld+json"
43
41
And I send a "GET" request to "/attribute_resources/1"
@@ -55,9 +53,6 @@ Feature: Resource attributes
55
53
}
56
54
"""
57
55
58
-
@php8
59
-
@!mysql
60
-
@!mongodb
61
56
Scenario: Retrieve the aliased resource
62
57
When I add "Content-Type" header equal to "application/ld+json"
63
58
And I send a "GET" request to "/dummy/1/attribute_resources/2"
@@ -77,9 +72,6 @@ Feature: Resource attributes
77
72
}
78
73
"""
79
74
80
-
@php8
81
-
@!mysql
82
-
@!mongodb
83
75
Scenario: Patch the aliased resource
84
76
When I add "Content-Type" header equal to "application/merge-patch+json"
85
77
And I send a "PATCH" request to "/dummy/1/attribute_resources/2" with body:
@@ -101,3 +93,10 @@ Feature: Resource attributes
101
93
"name": "Patched"
102
94
}
103
95
"""
96
+
97
+
Scenario: Uri variables should be configured properly
98
+
When I send a "GET" request to "/photos/1/resize/300/100"
99
+
Then the response status code should be 400
100
+
And the response should be in JSON
101
+
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
102
+
And the JSON node "hydra:description" should be equal to 'Unable to generate an IRI for the item of type "ApiPlatform\Tests\Fixtures\TestBundle\Entity\IncompleteUriVariableConfigured"'
0 commit comments