Beispiel #1
0
 public static SpeakersLink WithHints(this SpeakersLink speakersLink)
 {
     speakersLink.AddHint<AllowHint>(h =>
     {
         h.AddMethod(HttpMethod.Get);
         h.AddMethod(HttpMethod.Put);
         h.AddMethod(HttpMethod.Delete);
     });
     speakersLink.AddHint<FormatsHint>(h => h.AddMediaType("application/vnd.collection+json"));
     return speakersLink;
 }
Beispiel #2
0
 public static TopicsLink WithHints(this TopicsLink topicsLink)
 {
     topicsLink.AddHint<AllowHint>(h =>
     {
         h.AddMethod(HttpMethod.Get);
         h.AddMethod(HttpMethod.Put);
         h.AddMethod(HttpMethod.Delete);
     });
     topicsLink.AddHint<FormatsHint>(h => h.AddMediaType("application/collection+json"));
     return topicsLink;
 }
Beispiel #3
0
 public static SpeakerLink WithHints(this SpeakerLink speakerLink)
 {
     speakerLink.AddHint<AllowHint>(h =>
     {
         h.AddMethod(HttpMethod.Get);
         h.AddMethod(HttpMethod.Put);
         h.AddMethod(HttpMethod.Delete);
     });
     speakerLink.AddHint<FormatsHint>(h =>
     {
         h.AddMediaType("text/plain");
         h.AddMediaType("application/hal+json");
     });
     return speakerLink;
 }
Beispiel #4
0
 public static SessionsLink WithHints(this SessionsLink link)
 {
     link.AddHint<AllowHint>(h => h.AddMethod(HttpMethod.Get));
     link.AddHint<FormatsHint>(h => h.AddMediaType("application/vnd.collection+json"));
     return link;
 }