EndpointDescriptionAttribute Class

Definition

Specifies a description for the endpoint in Metadata.

C#
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class EndpointDescriptionAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IEndpointDescriptionMetadata
Inheritance
EndpointDescriptionAttribute
Attributes
Implements

Remarks

The OpenAPI specification supports a description attribute on operations and parameters that can be used to annotate endpoints with detailed, multiline descriptors of their behavior.

Constructors

Properties

Description

Gets the description associated with the endpoint.

Methods

ToString() System.Attribute.ToString

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0