@@ -15,6 +15,39 @@ Feature: Retrieve from Elasticsearch
1515 "@context": "/contexts/User",
1616 "@id": "/users/116b83f8-6c32-48d8-8e28-c5c247532d3f",
1717 "@type": "User",
18+ "operation": [
19+ {
20+ "@type": ["hydra:Operation", "schema:FindAction"],
21+ "hydra:description": "Retrieves a User resource.",
22+ "hydra:method": "GET",
23+ "hydra:title": "getUser",
24+ "returns": "User"
25+ },
26+ {
27+ "@type": ["hydra:Operation", "schema:ReplaceAction"],
28+ "expects": "User",
29+ "hydra:description": "Replaces the User resource.",
30+ "hydra:method": "PUT",
31+ "hydra:title": "putUser",
32+ "returns": "User"
33+ },
34+ {
35+ "@type": "hydra:Operation",
36+ "expects": "User",
37+ "expectsHeader": [{"headerName": "Content-Type", "possibleValue": ["application/merge-patch+json", "application/vnd.api+json"]}],
38+ "hydra:description": "Updates the User resource.",
39+ "hydra:method": "PATCH",
40+ "hydra:title": "patchUser",
41+ "returns": "User"
42+ },
43+ {
44+ "@type": ["hydra:Operation", "schema:DeleteAction"],
45+ "hydra:description": "Deletes the User resource.",
46+ "hydra:method": "DELETE",
47+ "hydra:title": "deleteUser",
48+ "returns": "owl:Nothing"
49+ }
50+ ],
1851 "id": "116b83f8-6c32-48d8-8e28-c5c247532d3f",
1952 "gender": "male",
2053 "age": 31,
@@ -392,6 +425,39 @@ Feature: Retrieve from Elasticsearch
392425 "@context": "/contexts/Library",
393426 "@id": "/libraries/116b83f8-6c32-48d8-8e28-c5c247532d3f",
394427 "@type": "Library",
428+ "operation": [
429+ {
430+ "@type": ["hydra:Operation", "schema:FindAction"],
431+ "hydra:description": "Retrieves a Library resource.",
432+ "hydra:method": "GET",
433+ "hydra:title": "getLibrary",
434+ "returns": "Library"
435+ },
436+ {
437+ "@type": ["hydra:Operation", "schema:ReplaceAction"],
438+ "expects": "Library",
439+ "hydra:description": "Replaces the Library resource.",
440+ "hydra:method": "PUT",
441+ "hydra:title": "putLibrary",
442+ "returns": "Library"
443+ },
444+ {
445+ "@type": "hydra:Operation",
446+ "expects": "Library",
447+ "expectsHeader": [{"headerName": "Content-Type", "possibleValue": ["application/merge-patch+json", "application/vnd.api+json"]}],
448+ "hydra:description": "Updates the Library resource.",
449+ "hydra:method": "PATCH",
450+ "hydra:title": "patchLibrary",
451+ "returns": "Library"
452+ },
453+ {
454+ "@type": ["hydra:Operation", "schema:DeleteAction"],
455+ "hydra:description": "Deletes the Library resource.",
456+ "hydra:method": "DELETE",
457+ "hydra:title": "deleteLibrary",
458+ "returns": "owl:Nothing"
459+ }
460+ ],
395461 "id": "116b83f8-6c32-48d8-8e28-c5c247532d3f",
396462 "gender": "male",
397463 "age": 31,
0 commit comments