DynamicEndpoints.AdminUI 0.4.0

dotnet add package DynamicEndpoints.AdminUI --version 0.4.0
                    
NuGet\Install-Package DynamicEndpoints.AdminUI -Version 0.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DynamicEndpoints.AdminUI" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DynamicEndpoints.AdminUI" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="DynamicEndpoints.AdminUI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DynamicEndpoints.AdminUI --version 0.4.0
                    
#r "nuget: DynamicEndpoints.AdminUI, 0.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DynamicEndpoints.AdminUI@0.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DynamicEndpoints.AdminUI&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=DynamicEndpoints.AdminUI&version=0.4.0
                    
Install as a Cake Tool

DynamicEndpoints.AdminUI

A ready-made admin panel for DynamicEndpoints: list, editor, drafts and scheduled publishing, history with diffs and rollback, and a "Try" console. Served straight from the assembly, so there are no static files to copy and no dependencies beyond ASP.NET Core.

License: MIT

app.MapDynamicEndpointsAdmin("/api/admin/endpoints").RequireAuthorization("admin");     // the REST API the panel talks to
app.MapDynamicEndpointsAdminUI("/admin", adminApiPath: "/api/admin/endpoints", o =>
{
    o.Title = "Orders API โ€“ endpoints";
    o.SwaggerUrl = "/swagger";                  // optional links in the header
    o.OpenApiUrl = "/openapi/dynamic.json";
}).RequireAuthorization("admin");

Open /admin/. The panel holds no data itself: everything goes through the admin REST API, so secure that one in any case. Both calls return a RouteGroupBuilder, so .RequireAuthorization(), .RequireHost() and friends work as usual. The panel's prefix is reserved, so no dynamic endpoint can take it.

What's inside

  • Endpoints: status (Active, Disabled, Invalid, Pending, Draft), drafts and scheduled publishes at a glance, filter, selection.
  • Editor: parameters with constraints and formats, JsonLogic rules, custom validators, processor configuration (forms for http-forward, webhook, response, sql-query and ef-crud โ€“ with the exposed entities and their fields โ€“ or JSON), security, caching and rate limits, documentation. Validate, Save draft (optionally with a publish time and a comment) or Save & publish; Code shows the request as curl, HTTPie or C#.
  • History: every revision with its kind and comment, view any of them, diff with the previous or the published one, roll back.
  • Try: a form generated from the definition, filled from the server's snippet generator, with Copy as curl / HTTPie / C# HttpClient.
  • Export & import: all, shown or selected endpoints as JSON or YAML; import with create, upsert or sync, always after a dry run. Plus an OpenAPI import wizard.
  • Scaffold CRUD: pick an entity exposed with AddEntityFrameworkCrud, the operations and a route prefix, check the dry run, create the endpoints (DynamicEndpoints.EntityFrameworkCore).
  • Audit log: per endpoint and for everything, with filters.
  • Tenants: tenant filter and column, a tenant field in the editor, and a Try console that sends the tenant.

The panel asks the admin API's GET /info what the server supports and shows only that: drafts and history need a store that keeps them, the audit log a queryable sink, YAML AddYamlFormat(), tenants UseMultiTenancy(), the ef-crud form and Scaffold CRUD AddEntityFrameworkCrud() (with at least one entity the admin API's tenant may use).

A panel per tenant

Route parameters of the pattern are filled into the admin API path and the links:

app.MapDynamicEndpointsTenantAdmin("/api/admin/tenants/{tenant}/endpoints").RequireAuthorization("tenant-admin");
app.MapDynamicEndpointsAdminUI("/admin/tenants/{tenant}", "/api/admin/tenants/{tenant}/endpoints", o =>
    o.OpenApiUrl = "/openapi/{tenant}/dynamic.json").RequireAuthorization("tenant-admin");

Secure both with a policy that checks the user belongs to the tenant. On the global panel, TenantOpenApiUrl and TenantSwaggerUrl (with a {tenant} placeholder) follow the tenant picked in the filter.

Notes

  • Works behind a path base (app.UsePathBase("/tools")): links and API calls follow it.
  • Files are sent with an ETag, and the page is never cached, so a deployment never mixes old scripts with a new page.
  • The page sets X-Content-Type-Options: nosniff, frame-ancestors 'none' and Referrer-Policy: no-referrer.

๐Ÿ“– Documentation ยท ๐Ÿ“ Changelog

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0 133 10/2/2026