mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-28 20:53:40 +00:00
admin api packaging
This commit is contained in:
1 parent
a4527d166a
commit
4534d4dbf5
124 files changed
+2250
-268
No files matched your search
+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