| | | 1 | | /// <summary> |
| | | 2 | | /// Attribute to specify OpenAPI path metadata for a route. |
| | | 3 | | /// </summary> |
| | | 4 | | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false, AllowMultiple = true)] |
| | 0 | 5 | | public sealed class OpenApiPath() : KestrunAnnotation |
| | | 6 | | { |
| | 0 | 7 | | public string? HttpVerb { get; set; } |
| | | 8 | | /// <summary> |
| | | 9 | | /// The relative path for the route in OpenAPI documentation. |
| | | 10 | | /// </summary> |
| | 0 | 11 | | public string? Pattern { get; init; } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// A brief summary of the route for OpenAPI documentation. |
| | | 15 | | /// </summary> |
| | 0 | 16 | | public string? Summary { get; set; } |
| | | 17 | | /// <summary> |
| | | 18 | | /// A detailed description of the route for OpenAPI documentation. |
| | | 19 | | /// </summary> |
| | 0 | 20 | | public string? Description { get; set; } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// The unique operation ID for the route in OpenAPI documentation. |
| | | 24 | | /// </summary> |
| | 0 | 25 | | public string? OperationId { get; set; } |
| | | 26 | | /// <summary> |
| | | 27 | | /// Comma-separated tags for OpenAPI documentation. |
| | | 28 | | /// </summary> |
| | 0 | 29 | | public string[] Tags { get; set; } = []; |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Indicates whether the operation is deprecated in OpenAPI documentation. |
| | | 33 | | /// </summary> |
| | 0 | 34 | | public bool Deprecated { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// The CORS policy name for the route in OpenAPI documentation. |
| | | 38 | | /// </summary> |
| | 0 | 39 | | public string? CorsPolicy { get; set; } |
| | | 40 | | } |