public RestEndpoint Add(ApiRule rule)
 {
     if (rule != null)
     {
         Rules.Add(rule);
     }
     return(this);
 }
 public ConditionalRule Conditional(ApiRule condition, ApiRule success, ApiRule fail)
 {
     return(new ConditionalRule
     {
         Condition = condition,
         Success = success,
         Fail = fail,
     });
 }