Table of Contents

Class OpenApiMetadataAttribute

Namespace
Biwen.QuickApi.Attributes
Assembly
Biwen.QuickApi.dll

用于标记QuickApi的描述信息,标注HandlerBuilder(RouteHandlerBuilder)

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class OpenApiMetadataAttribute : Attribute
Inheritance
OpenApiMetadataAttribute
Inherited Members
Extension Methods

Constructors

OpenApiMetadataAttribute(string?, string?)

用于标记QuickApi的描述信息,标注HandlerBuilder(RouteHandlerBuilder)

public OpenApiMetadataAttribute(string? summary, string? description)

Parameters

summary string
description string

Properties

Description

Description

public string? Description { get; set; }

Property Value

string

IsDeprecated

标记为是否已过时.

public bool IsDeprecated { get; set; }

Property Value

bool

OperationId

OperationId

public string? OperationId { get; set; }

Property Value

string

Summary

Summary

public string? Summary { get; set; }

Property Value

string

Tags

Tags

public string[] Tags { get; set; }

Property Value

string[]