@@ -915,12 +915,119 @@ Feature: Relations support
915915 "@context": "/contexts/RelationEmbedder",
916916 "@id": "/relation_embedders/2",
917917 "@type": "RelationEmbedder",
918+ "operation": [
919+ {
920+ "@type": [
921+ "hydra:Operation",
922+ "schema:FindAction"
923+ ],
924+ "hydra:description": "Retrieves a RelationEmbedder resource.",
925+ "hydra:method": "GET",
926+ "hydra:title": "getRelationEmbedder",
927+ "returns": "RelationEmbedder"
928+ },
929+ {
930+ "@type": [
931+ "hydra:Operation",
932+ "schema:ReplaceAction"
933+ ],
934+ "expects": "RelationEmbedder",
935+ "hydra:description": "Replaces the RelationEmbedder resource.",
936+ "hydra:method": "PUT",
937+ "hydra:title": "putRelationEmbedder",
938+ "returns": "RelationEmbedder"
939+ },
940+ {
941+ "@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+ ],
962+ "hydra:description": "Deletes the RelationEmbedder resource.",
963+ "hydra:method": "DELETE",
964+ "hydra:title": "deleteRelationEmbedder",
965+ "returns": "owl:Nothing"
966+ }
967+ ],
918968 "krondstadt": "Krondstadt",
919969 "anotherRelated": {
920970 "@id": "/related_dummies/2",
921971 "@type": "https://schema.org/Product",
972+ "operation": [
973+ {
974+ "@type": [
975+ "hydra:Operation",
976+ "schema:FindAction"
977+ ],
978+ "hydra:description": "Retrieves a RelatedDummy resource.",
979+ "hydra:method": "GET",
980+ "hydra:title": "getRelatedDummy",
981+ "returns": "RelatedDummy"
982+ },
983+ {
984+ "@type": [
985+ "hydra:Operation",
986+ "schema:ReplaceAction"
987+ ],
988+ "expects": "RelatedDummy",
989+ "hydra:description": "Replaces the RelatedDummy resource.",
990+ "hydra:method": "PUT",
991+ "hydra:title": "putRelatedDummy",
992+ "returns": "RelatedDummy"
993+ },
994+ {
995+ "@type": "hydra:Operation",
996+ "expects": "RelatedDummy",
997+ "expectsHeader": [
998+ {
999+ "headerName": "Content-Type",
1000+ "possibleValue": [
1001+ "application/merge-patch+json",
1002+ "application/vnd.api+json"
1003+ ]
1004+ }
1005+ ],
1006+ "hydra:description": "Updates the RelatedDummy resource.",
1007+ "hydra:method": "PATCH",
1008+ "hydra:title": "patchRelatedDummy",
1009+ "returns": "RelatedDummy"
1010+ },
1011+ {
1012+ "@type": [
1013+ "hydra:Operation",
1014+ "schema:DeleteAction"
1015+ ],
1016+ "hydra:description": "Deletes the RelatedDummy resource.",
1017+ "hydra:method": "DELETE",
1018+ "hydra:title": "deleteRelatedDummy",
1019+ "returns": "owl:Nothing"
1020+ }
1021+ ],
9221022 "symfony": "laravel",
923- "thirdLevel": null
1023+ "id": 2,
1024+ "name": null,
1025+ "dummyDate": null,
1026+ "thirdLevel": null,
1027+ "relatedToDummyFriend": [],
1028+ "dummyBoolean": null,
1029+ "embeddedDummy": [],
1030+ "age": null
9241031 },
9251032 "related": null
9261033 }
@@ -945,12 +1052,119 @@ Feature: Relations support
9451052 "@context": "/contexts/RelationEmbedder",
9461053 "@id": "/relation_embedders/2",
9471054 "@type": "RelationEmbedder",
1055+ "operation": [
1056+ {
1057+ "@type": [
1058+ "hydra:Operation",
1059+ "schema:FindAction"
1060+ ],
1061+ "hydra:description": "Retrieves a RelationEmbedder resource.",
1062+ "hydra:method": "GET",
1063+ "hydra:title": "getRelationEmbedder",
1064+ "returns": "RelationEmbedder"
1065+ },
1066+ {
1067+ "@type": [
1068+ "hydra:Operation",
1069+ "schema:ReplaceAction"
1070+ ],
1071+ "expects": "RelationEmbedder",
1072+ "hydra:description": "Replaces the RelationEmbedder resource.",
1073+ "hydra:method": "PUT",
1074+ "hydra:title": "putRelationEmbedder",
1075+ "returns": "RelationEmbedder"
1076+ },
1077+ {
1078+ "@type": "hydra:Operation",
1079+ "expects": "RelationEmbedder",
1080+ "expectsHeader": [
1081+ {
1082+ "headerName": "Content-Type",
1083+ "possibleValue": [
1084+ "application/merge-patch+json",
1085+ "application/vnd.api+json"
1086+ ]
1087+ }
1088+ ],
1089+ "hydra:description": "Updates the RelationEmbedder resource.",
1090+ "hydra:method": "PATCH",
1091+ "hydra:title": "patchRelationEmbedder",
1092+ "returns": "RelationEmbedder"
1093+ },
1094+ {
1095+ "@type": [
1096+ "hydra:Operation",
1097+ "schema:DeleteAction"
1098+ ],
1099+ "hydra:description": "Deletes the RelationEmbedder resource.",
1100+ "hydra:method": "DELETE",
1101+ "hydra:title": "deleteRelationEmbedder",
1102+ "returns": "owl:Nothing"
1103+ }
1104+ ],
9481105 "krondstadt": "Krondstadt",
9491106 "anotherRelated": {
9501107 "@id": "/related_dummies/3",
9511108 "@type": "https://schema.org/Product",
1109+ "operation": [
1110+ {
1111+ "@type": [
1112+ "hydra:Operation",
1113+ "schema:FindAction"
1114+ ],
1115+ "hydra:description": "Retrieves a RelatedDummy resource.",
1116+ "hydra:method": "GET",
1117+ "hydra:title": "getRelatedDummy",
1118+ "returns": "RelatedDummy"
1119+ },
1120+ {
1121+ "@type": [
1122+ "hydra:Operation",
1123+ "schema:ReplaceAction"
1124+ ],
1125+ "expects": "RelatedDummy",
1126+ "hydra:description": "Replaces the RelatedDummy resource.",
1127+ "hydra:method": "PUT",
1128+ "hydra:title": "putRelatedDummy",
1129+ "returns": "RelatedDummy"
1130+ },
1131+ {
1132+ "@type": "hydra:Operation",
1133+ "expects": "RelatedDummy",
1134+ "expectsHeader": [
1135+ {
1136+ "headerName": "Content-Type",
1137+ "possibleValue": [
1138+ "application/merge-patch+json",
1139+ "application/vnd.api+json"
1140+ ]
1141+ }
1142+ ],
1143+ "hydra:description": "Updates the RelatedDummy resource.",
1144+ "hydra:method": "PATCH",
1145+ "hydra:title": "patchRelatedDummy",
1146+ "returns": "RelatedDummy"
1147+ },
1148+ {
1149+ "@type": [
1150+ "hydra:Operation",
1151+ "schema:DeleteAction"
1152+ ],
1153+ "hydra:description": "Deletes the RelatedDummy resource.",
1154+ "hydra:method": "DELETE",
1155+ "hydra:title": "deleteRelatedDummy",
1156+ "returns": "owl:Nothing"
1157+ }
1158+ ],
9521159 "symfony": "laravel2",
953- "thirdLevel": null
1160+ "id": 3,
1161+ "name": null,
1162+ "dummyDate": null,
1163+ "thirdLevel": null,
1164+ "relatedToDummyFriend": [],
1165+ "dummyBoolean": null,
1166+ "embeddedDummy": [],
1167+ "age": null
9541168 },
9551169 "related": null
9561170 }
0 commit comments