C# Class Swagger.Net.SwaggerActionFilter

Determines if any request hit the Swagger route. Moves on if not, otherwise responds with JSON Swagger spec doc
Inheritance: System.Web.Http.Filters.ActionFilterAttribute
Show file Open project: giacomelli/DG-Swagger.Net

Private Properties

Property Type Description
CollectApiDescriptions void
GetApiDescriptionsByController IEnumerable
GetDocs ResourceListing

Public Methods

Method Description
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void

Executes each request to give either a JSON Swagger spec doc or passes through the request

Private Methods

Method Description
CollectApiDescriptions ( ) : void
GetApiDescriptionsByController ( string controllerName ) : IEnumerable
GetDocs ( System.Web.Http.Controllers.HttpActionContext actionContext ) : ResourceListing

Method Details

OnActionExecuting() public method

Executes each request to give either a JSON Swagger spec doc or passes through the request
public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext actionContext ) : void
actionContext System.Web.Http.Controllers.HttpActionContext Context of the action
return void