mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-26 21:45:20 +00:00
Admin api changes
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
@using ArcaneLibs.Extensions
|
||||
@using Spacebar.AdminAPI.TestClient.Classes.OpenAPI
|
||||
<span title="@Parameter.ToJson()">@Summary</span>
|
||||
@if (Parameter.Name != Parameter.Description && !string.IsNullOrWhiteSpace(Parameter.Description)) {
|
||||
<i> - @Parameter.Description</i>
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
private string Summary { get; set; } = "Unbound parameter";
|
||||
|
||||
[Parameter]
|
||||
public required OpenApiPath.OpenApiOperation.OpenApiParameter Parameter {
|
||||
get;
|
||||
set {
|
||||
field = value;
|
||||
Summary = $"{Parameter.Name}{(Parameter.Required ? "*" : "")} ({Parameter.Schema.Type})";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user