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                
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="n-ate.Swagger" Version="8.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add n-ate.Swagger --version 8.0.0                
#r "nuget: n-ate.Swagger, 8.0.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.
// 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 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:

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 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. 
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
8.0.0 115 5/27/2024