Beispiel #1
0
 public override void AddHypermediaLinks(HypermediaBuilder builder)
 {
     Add(builder.FromController <FakeController>(c => nameof(c.GetCollectionModel), values: new { id = Id, name = Name }).Build().AddSelfRel());
     Add(builder.FormConfiguration("modeltest", new { id = 1 }).Build().AddRel("modeltest"));
 }
Beispiel #2
0
 public override void AddHypermediaLinks(HypermediaBuilder builder)
 {
     Add(builder.FromController <FakeController>(c => nameof(c.GetSimpleModel), new { id = Id, name = Name }).Type("GET").Build().AddSelfRel());
 }