@@ -21,8 +21,58 @@ Feature: Expose persisted object state
2121 "@context": "/contexts/TruncatedDummy",
2222 "@id": "/truncated_dummies/1",
2323 "@type": "TruncatedDummy",
24- "value": "20.3",
25- "id": 1
24+ "operation": [
25+ {
26+ "@type": [
27+ "hydra:Operation",
28+ "schema:FindAction"
29+ ],
30+ "hydra:description": "Retrieves a TruncatedDummy resource.",
31+ "hydra:method": "GET",
32+ "hydra:title": "getTruncatedDummy",
33+ "returns": "TruncatedDummy"
34+ },
35+ {
36+ "@type": [
37+ "hydra:Operation",
38+ "schema:ReplaceAction"
39+ ],
40+ "expects": "TruncatedDummy",
41+ "hydra:description": "Replaces the TruncatedDummy resource.",
42+ "hydra:method": "PUT",
43+ "hydra:title": "putTruncatedDummy",
44+ "returns": "TruncatedDummy"
45+ },
46+ {
47+ "@type": "hydra:Operation",
48+ "expects": "TruncatedDummy",
49+ "expectsHeader": [
50+ {
51+ "headerName": "Content-Type",
52+ "possibleValue": [
53+ "application/merge-patch+json",
54+ "application/vnd.api+json"
55+ ]
56+ }
57+ ],
58+ "hydra:description": "Updates the TruncatedDummy resource.",
59+ "hydra:method": "PATCH",
60+ "hydra:title": "patchTruncatedDummy",
61+ "returns": "TruncatedDummy"
62+ },
63+ {
64+ "@type": [
65+ "hydra:Operation",
66+ "schema:DeleteAction"
67+ ],
68+ "hydra:description": "Deletes the TruncatedDummy resource.",
69+ "hydra:method": "DELETE",
70+ "hydra:title": "deleteTruncatedDummy",
71+ "returns": "owl:Nothing"
72+ }
73+ ],
74+ "id": 1,
75+ "value": "20.3"
2676 }
2777 """
2878
@@ -42,7 +92,57 @@ Feature: Expose persisted object state
4292 "@context": "/contexts/TruncatedDummy",
4393 "@id": "/truncated_dummies/1",
4494 "@type": "TruncatedDummy",
45- "value": "42.4",
46- "id": 1
95+ "operation": [
96+ {
97+ "@type": [
98+ "hydra:Operation",
99+ "schema:FindAction"
100+ ],
101+ "hydra:description": "Retrieves a TruncatedDummy resource.",
102+ "hydra:method": "GET",
103+ "hydra:title": "getTruncatedDummy",
104+ "returns": "TruncatedDummy"
105+ },
106+ {
107+ "@type": [
108+ "hydra:Operation",
109+ "schema:ReplaceAction"
110+ ],
111+ "expects": "TruncatedDummy",
112+ "hydra:description": "Replaces the TruncatedDummy resource.",
113+ "hydra:method": "PUT",
114+ "hydra:title": "putTruncatedDummy",
115+ "returns": "TruncatedDummy"
116+ },
117+ {
118+ "@type": "hydra:Operation",
119+ "expects": "TruncatedDummy",
120+ "expectsHeader": [
121+ {
122+ "headerName": "Content-Type",
123+ "possibleValue": [
124+ "application/merge-patch+json",
125+ "application/vnd.api+json"
126+ ]
127+ }
128+ ],
129+ "hydra:description": "Updates the TruncatedDummy resource.",
130+ "hydra:method": "PATCH",
131+ "hydra:title": "patchTruncatedDummy",
132+ "returns": "TruncatedDummy"
133+ },
134+ {
135+ "@type": [
136+ "hydra:Operation",
137+ "schema:DeleteAction"
138+ ],
139+ "hydra:description": "Deletes the TruncatedDummy resource.",
140+ "hydra:method": "DELETE",
141+ "hydra:title": "deleteTruncatedDummy",
142+ "returns": "owl:Nothing"
143+ }
144+ ],
145+ "id": 1,
146+ "value": "42.4"
47147 }
48148 """
0 commit comments