@@ -161,7 +161,7 @@ Feature: Relations support
161161 """
162162 {
163163 "@context": "/contexts/RelatedDummy",
164- "@id": "/related_dummies/1 ",
164+ "@id": "/related_dummies/2 ",
165165 "@type": "https://schema.org/Product",
166166 "operation": [
167167 {
@@ -717,7 +717,7 @@ Feature: Relations support
717717 """
718718 {
719719 "@context": "/contexts/RelationEmbedder",
720- "@id": "/relation_embedders/1 ",
720+ "@id": "/relation_embedders/2 ",
721721 "@type": "RelationEmbedder",
722722 "operation": [
723723 {
@@ -913,61 +913,57 @@ Feature: Relations support
913913 """
914914 {
915915 "@context": "/contexts/RelationEmbedder",
916- "@id": "/relation_embedders/2 ",
916+ "@id": "/relation_embedders/1 ",
917917 "@type": "RelationEmbedder",
918918 "operation": [
919919 {
920- "@type": [
921- "hydra:Operation",
922- "schema:FindAction"
923- ],
920+ "@type": "hydra:Operation",
924921 "hydra:description": "Retrieves a RelationEmbedder resource.",
925922 "hydra:method": "GET",
926- "hydra:title": "getRelationEmbedder ",
927- "returns": "RelationEmbedder "
923+ "hydra:title": "A custom operation ",
924+ "returns": "xsd:string "
928925 },
929926 {
930- "@type": [
931- "hydra:Operation",
932- "schema:ReplaceAction"
933- ],
927+ "@type": "hydra:Operation",
934928 "expects": "RelationEmbedder",
935929 "hydra:description": "Replaces the RelationEmbedder resource.",
936930 "hydra:method": "PUT",
937- "hydra:title": "putRelationEmbedder ",
938- "returns": "RelationEmbedder "
931+ "hydra:title": "A custom operation ",
932+ "returns": "xsd:string "
939933 },
940934 {
941935 "@type": "hydra:Operation",
942- "expects": "RelationEmbedder",
943- "expectsHeader": [
944- {
945- "headerName": "Content-Type",
946- "possibleValue": [
947- "application/merge-patch+json",
948- "application/vnd.api+json"
949- ]
950- }
951- ],
952- "hydra:description": "Updates the RelationEmbedder resource.",
953- "hydra:method": "PATCH",
954- "hydra:title": "patchRelationEmbedder",
955- "returns": "RelationEmbedder"
956- },
957- {
958- "@type": [
959- "hydra:Operation",
960- "schema:DeleteAction"
961- ],
962936 "hydra:description": "Deletes the RelationEmbedder resource.",
963937 "hydra:method": "DELETE",
964- "hydra:title": "deleteRelationEmbedder",
965- "returns": "owl:Nothing"
938+ "hydra:title": "A custom operation",
939+ "returns": "xsd:string"
940+ },
941+ {
942+ "@type": "hydra:Operation",
943+ "hydra:description": "Retrieves a RelationEmbedder resource.",
944+ "hydra:method": "GET",
945+ "hydra:title": "A custom operation",
946+ "returns": "xsd:string"
947+ },
948+ {
949+ "@type": "hydra:Operation",
950+ "hydra:description": "Retrieves a RelationEmbedder resource.",
951+ "hydra:method": "GET",
952+ "hydra:title": "A custom operation",
953+ "returns": "xsd:string"
954+ },
955+ {
956+ "@type": "hydra:Operation",
957+ "expects": "RelationEmbedder",
958+ "hydra:description": "Replaces the RelationEmbedder resource.",
959+ "hydra:method": "PUT",
960+ "hydra:title": "A custom operation",
961+ "returns": "xsd:string"
966962 }
967963 ],
968964 "krondstadt": "Krondstadt",
969965 "anotherRelated": {
970- "@id": "/related_dummies/2 ",
966+ "@id": "/related_dummies/1 ",
971967 "@type": "https://schema.org/Product",
972968 "operation": [
973969 {
@@ -1035,7 +1031,7 @@ Feature: Relations support
10351031
10361032 Scenario : Update the relation with a new one
10371033 When I add "Content-Type" header equal to "application/ld+json"
1038- And I send a "PUT" request to "/relation_embedders/2 " with body:
1034+ And I send a "PUT" request to "/relation_embedders/1 " with body:
10391035 """
10401036 {
10411037 "anotherRelated": {
@@ -1054,33 +1050,50 @@ Feature: Relations support
10541050 "@type": "RelationEmbedder",
10551051 "operation": [
10561052 {
1057- "@type": [
1058- "hydra:Operation",
1059- "schema:FindAction"
1060- ],
1053+ "@type": "hydra:Operation",
10611054 "hydra:description": "Retrieves a RelationEmbedder resource.",
10621055 "hydra:method": "GET",
1063- "hydra:title": "getRelationEmbedder ",
1064- "returns": "RelationEmbedder "
1056+ "hydra:title": "A custom operation ",
1057+ "returns": "xsd:string "
10651058 },
10661059 {
1067- "@type": [
1068- "hydra:Operation",
1069- "schema:ReplaceAction"
1070- ],
1060+ "@type": "hydra:Operation",
10711061 "expects": "RelationEmbedder",
10721062 "hydra:description": "Replaces the RelationEmbedder resource.",
10731063 "hydra:method": "PUT",
1074- "hydra:title": "putRelationEmbedder",
1075- "returns": "RelationEmbedder"
1064+ "hydra:title": "A custom operation",
1065+ "returns": "xsd:string"
1066+ },
1067+ {
1068+ "@type": "hydra:Operation",
1069+ "hydra:description": "Deletes the RelationEmbedder resource.",
1070+ "hydra:method": "DELETE",
1071+ "hydra:title": "A custom operation",
1072+ "returns": "xsd:string"
1073+ },
1074+ {
1075+ "@type": "hydra:Operation",
1076+ "hydra:description": "Retrieves a RelationEmbedder resource.",
1077+ "hydra:method": "GET",
1078+ "hydra:title": "A custom operation",
1079+ "returns": "xsd:string"
1080+ },
1081+ {
1082+ "@type": "hydra:Operation",
1083+ "hydra:description": "Retrieves a RelationEmbedder resource.",
1084+ "hydra:method": "GET",
1085+ "hydra:title": "A custom operation",
1086+ "returns": "xsd:string"
10761087 },
10771088 {
10781089 "@type": "hydra:Operation",
10791090 "expects": "RelationEmbedder",
1080- "expectsHeader": [
1081- {
1082- "headerName": "Content-Type",
1083- "possibleValue": [
1091+ "hydra:description": "Replaces the RelationEmbedder resource.",
1092+ "hydra:method": "PUT",
1093+ "hydra:title": "A custom operation",
1094+ "returns": "xsd:string"
1095+ }
1096+ ],
10841097 "application/merge-patch+json",
10851098 "application/vnd.api+json"
10861099 ]
@@ -1263,6 +1276,45 @@ Feature: Relations support
12631276 "hydra:title": "A custom operation",
12641277 "returns": "xsd:string"
12651278 }
1279+ ],
1280+ },
1281+ {
1282+ "@type": "hydra:Operation",
1283+ "expects": "RelationEmbedder",
1284+ "hydra:description": "Replaces the RelationEmbedder resource.",
1285+ "hydra:method": "PUT",
1286+ "hydra:title": "A custom operation",
1287+ "returns": "xsd:string"
1288+ },
1289+ {
1290+ "@type": "hydra:Operation",
1291+ "hydra:description": "Deletes the RelationEmbedder resource.",
1292+ "hydra:method": "DELETE",
1293+ "hydra:title": "A custom operation",
1294+ "returns": "xsd:string"
1295+ },
1296+ {
1297+ "@type": "hydra:Operation",
1298+ "hydra:description": "Retrieves a RelationEmbedder resource.",
1299+ "hydra:method": "GET",
1300+ "hydra:title": "A custom operation",
1301+ "returns": "xsd:string"
1302+ },
1303+ {
1304+ "@type": "hydra:Operation",
1305+ "hydra:description": "Retrieves a RelationEmbedder resource.",
1306+ "hydra:method": "GET",
1307+ "hydra:title": "A custom operation",
1308+ "returns": "xsd:string"
1309+ },
1310+ {
1311+ "@type": "hydra:Operation",
1312+ "expects": "RelationEmbedder",
1313+ "hydra:description": "Replaces the RelationEmbedder resource.",
1314+ "hydra:method": "PUT",
1315+ "hydra:title": "A custom operation",
1316+ "returns": "xsd:string"
1317+ }
12661318 ],
12671319 "krondstadt": "Krondstadt",
12681320 "anotherRelated": {
0 commit comments