n-ate.Swagger
8.0.0
Prefix Reserved
dotnet add package n-ate.Swagger --version 8.0.0
NuGet\Install-Package n-ate.Swagger -Version 8.0.0
<PackageReference Include="n-ate.Swagger" Version="8.0.0" />
paket add n-ate.Swagger --version 8.0.0
#r "nuget: n-ate.Swagger, 8.0.0"
// Install n-ate.Swagger as a Cake Addin #addin nuget:?package=n-ate.Swagger&version=8.0.0 // Install n-ate.Swagger as a Cake Tool #tool nuget:?package=n-ate.Swagger&version=8.0.0
n-ate Swagger Package
Note, if using this README from Visual Studio you may want to install a markdown editor extension.
Quick start with general API setup.
For authorization of a client application see the client authorization guide.
Package Features: The n-ate Swagger package provides tooling common to API projects shortening development time and enhancing Swagger pages for greater utility. The following significant features are available in this package:
- Auto-login for Swagger HTML pages
- Advanced versioning capabilities
- Health check endpoint mapping
- Azure build pipeline version capture
- Displaying example request JSON on Swagger pages
- Enhancing a Swagger HTML page with CSS and Javascript
Other minor features available in this package:
- listing all registered routes
- Preventing GET endpoint caching
- Defining querystring variables
For a visual summary of Swagger page features click here.
//TODO: Ensure each of the following features are properly documented:
Audit Routes Endpoint
required configuration
AddFreshSwaggerGen()
AddControllers()
UseFreshSwagger()
UseEndpoints()
MapControllers()
MapAuditEndpoint()
Swagger UI Configuration
options.InjectDefaultExplanationHtml("<h1>Hello World!</h1>");
options.InjectExplanationFile(FreshVersion.Get("test-v1.1"), @"wwwroot\html\fragments\swagger-test-definition-explanation.html");
options.InjectOperationsFilter();
options.OnDefinitionLoadExecuteScript(@"console.log(""OnDefinitionLoadExecuteScript() executed successfully again!"");");
options.OnDefinitionLoadExecuteScript(@"console.log(""OnDefinitionLoadExecuteScript() executed successfully!"");");
options.SpecifyStracktraceFormattingField("api-execution-stack");
options.SpecifyStracktraceFormattingField("stack");
options.UseAutomaticAuthorization();
List of attributes used by this package:
Attribute name | Attribute Namespace |
---|---|
Authorize | Microsoft.AspNetCore.Authorization |
ApiController | Microsoft.AspNetCore.Mvc |
FreshApiVersion | n_ate.Swagger |
ControllerName | Microsoft.AspNetCore.Mvc |
HttpDelete | Microsoft.AspNetCore.Mvc |
HttpGet | Microsoft.AspNetCore.Mvc |
HttpPatch | Microsoft.AspNetCore.Mvc |
HttpPost | Microsoft.AspNetCore.Mvc |
HttpPut | Microsoft.AspNetCore.Mvc |
NoCache | n_ate.Swagger |
Produces | Microsoft.AspNetCore.Mvc |
ProducesResponseType | Microsoft.AspNetCore.Mvc |
QueryStringParameter | n_ate.Swagger |
RequiresRequestType | n_ate.Swagger |
Route | Microsoft.AspNetCore.Mvc |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.1)
- Microsoft.AspNetCore.Mvc.Versioning (>= 5.1.0)
- Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer (>= 5.1.0)
- Microsoft.OpenApi (>= 1.6.13)
- Microsoft.OpenApi.Readers (>= 1.6.13)
- n-ate.Essentials (>= 8.0.1)
- Swashbuckle.AspNetCore.SwaggerGen (>= 6.5.0)
- Swashbuckle.AspNetCore.SwaggerUI (>= 6.5.0)
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 |
---|---|---|
8.0.0 | 115 | 5/27/2024 |