@@ -623,6 +623,7 @@ const book = {
623
623
{
624
624
"name" : "Replaces the Book resource." ,
625
625
"method" : "PUT" ,
626
+ "expects" : "http://schema.org/Book" ,
626
627
"returns" : "http://schema.org/Book" ,
627
628
"types" : [ "http://www.w3.org/ns/hydra/core#ReplaceResourceOperation" ] ,
628
629
} ,
@@ -739,6 +740,7 @@ const review = {
739
740
{
740
741
"name" : "Creates a Review resource." ,
741
742
"method" : "POST" ,
743
+ "expects" : "http://schema.org/Review" ,
742
744
"returns" : "http://schema.org/Review" ,
743
745
"types" : [
744
746
"http://www.w3.org/ns/hydra/core#CreateResourceOperation"
@@ -753,6 +755,7 @@ const review = {
753
755
{
754
756
"name" : "Replaces the Review resource." ,
755
757
"method" : "PUT" ,
758
+ "expects" : "http://schema.org/Review" ,
756
759
"returns" : "http://schema.org/Review" ,
757
760
"types" : [ "http://www.w3.org/ns/hydra/core#ReplaceResourceOperation" ] ,
758
761
} ,
@@ -860,6 +863,7 @@ const customResource = {
860
863
{
861
864
"name" : "Creates a custom resource." ,
862
865
"method" : "POST" ,
866
+ "expects" : "http://localhost/docs.jsonld#CustomResource" ,
863
867
"returns" : "http://localhost/docs.jsonld#CustomResource" ,
864
868
"types" : [
865
869
"http://www.w3.org/ns/hydra/core#CreateResourceOperation"
@@ -874,6 +878,7 @@ const customResource = {
874
878
{
875
879
"name" : "Creates a custom resource." ,
876
880
"method" : "POST" ,
881
+ "expects" : "http://localhost/docs.jsonld#CustomResource" ,
877
882
"returns" : "http://localhost/docs.jsonld#CustomResource" ,
878
883
"types" : [ "http://www.w3.org/ns/hydra/core#CreateResourceOperation" ] ,
879
884
}
0 commit comments