|
|
@ -28,6 +28,8 @@ public class ActionApiDescriptionModel |
|
|
|
|
|
|
|
|
public bool? AllowAnonymous { get; set; } |
|
|
public bool? AllowAnonymous { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public string? RequiredPolicy { get; set; } |
|
|
|
|
|
|
|
|
public string? ImplementFrom { get; set; } |
|
|
public string? ImplementFrom { get; set; } |
|
|
|
|
|
|
|
|
public ActionApiDescriptionModel() |
|
|
public ActionApiDescriptionModel() |
|
|
@ -35,7 +37,7 @@ public class ActionApiDescriptionModel |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static ActionApiDescriptionModel Create([NotNull] string uniqueName, [NotNull] MethodInfo method, [NotNull] string url, string? httpMethod, [NotNull] IList<string> supportedVersions, bool? allowAnonymous = null, string? implementFrom = null) |
|
|
public static ActionApiDescriptionModel Create([NotNull] string uniqueName, [NotNull] MethodInfo method, [NotNull] string url, string? httpMethod, [NotNull] IList<string> supportedVersions, bool? allowAnonymous = null, string? requiredPolicy, string? implementFrom = null) |
|
|
{ |
|
|
{ |
|
|
Check.NotNull(uniqueName, nameof(uniqueName)); |
|
|
Check.NotNull(uniqueName, nameof(uniqueName)); |
|
|
Check.NotNull(method, nameof(method)); |
|
|
Check.NotNull(method, nameof(method)); |
|
|
@ -56,6 +58,7 @@ public class ActionApiDescriptionModel |
|
|
.ToList(), |
|
|
.ToList(), |
|
|
SupportedVersions = supportedVersions, |
|
|
SupportedVersions = supportedVersions, |
|
|
AllowAnonymous = allowAnonymous, |
|
|
AllowAnonymous = allowAnonymous, |
|
|
|
|
|
RequiredPolicy = requiredPolicy, |
|
|
ImplementFrom = implementFrom |
|
|
ImplementFrom = implementFrom |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
|