Show / Hide Table of Contents

Class SwaggerOperationFilter

Implementation of the IOperationFilter interface to customize Swagger operations, in particular to allow adding the Authorization header paremeter to the endpoints that require authorization.

Inheritance
System.Object
SwaggerOperationFilter
Namespace: Celerik.NetCore.Web
Assembly: cs.temp.dll.dll
Syntax
public class SwaggerOperationFilter : IOperationFilter

Methods

Apply(OpenApiOperation, OperationFilterContext)

Declaration
public void Apply(OpenApiOperation operation, OperationFilterContext context)
Parameters
Type Name Description
OpenApiOperation operation
OperationFilterContext context

Apply(Operation, OperationFilterContext)

Adds all customized parameters to the passed-in operation object.

Declaration
public void Apply(Operation operation, OperationFilterContext context)
Parameters
Type Name Description
Operation operation

The swagger operation.

OperationFilterContext context

The operation filter context.

In This Article
Back to top Generated by DocFX