@@ -623,6 +623,7 @@ const book = {
623623 {
624624 "name" : "Replaces the Book resource." ,
625625 "method" : "PUT" ,
626+ "expects" : "http://schema.org/Book" ,
626627 "returns" : "http://schema.org/Book" ,
627628 "types" : [ "http://www.w3.org/ns/hydra/core#ReplaceResourceOperation" ] ,
628629 } ,
@@ -739,6 +740,7 @@ const review = {
739740 {
740741 "name" : "Creates a Review resource." ,
741742 "method" : "POST" ,
743+ "expects" : "http://schema.org/Review" ,
742744 "returns" : "http://schema.org/Review" ,
743745 "types" : [
744746 "http://www.w3.org/ns/hydra/core#CreateResourceOperation"
@@ -753,6 +755,7 @@ const review = {
753755 {
754756 "name" : "Replaces the Review resource." ,
755757 "method" : "PUT" ,
758+ "expects" : "http://schema.org/Review" ,
756759 "returns" : "http://schema.org/Review" ,
757760 "types" : [ "http://www.w3.org/ns/hydra/core#ReplaceResourceOperation" ] ,
758761 } ,
@@ -860,6 +863,7 @@ const customResource = {
860863 {
861864 "name" : "Creates a custom resource." ,
862865 "method" : "POST" ,
866+ "expects" : "http://localhost/docs.jsonld#CustomResource" ,
863867 "returns" : "http://localhost/docs.jsonld#CustomResource" ,
864868 "types" : [
865869 "http://www.w3.org/ns/hydra/core#CreateResourceOperation"
@@ -874,6 +878,7 @@ const customResource = {
874878 {
875879 "name" : "Creates a custom resource." ,
876880 "method" : "POST" ,
881+ "expects" : "http://localhost/docs.jsonld#CustomResource" ,
877882 "returns" : "http://localhost/docs.jsonld#CustomResource" ,
878883 "types" : [ "http://www.w3.org/ns/hydra/core#CreateResourceOperation" ] ,
879884 }
0 commit comments