mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
feat: add HttpPut and HttpDelete attributes for comprehensive HTTP method support
Co-authored-by: andrew-welker <1765622+andrew-welker@users.noreply.github.com>
This commit is contained in:
@@ -33,6 +33,22 @@ namespace PepperDash.Essentials.Core.Web.Attributes
|
|||||||
public HttpPostAttribute() : base("POST") { }
|
public HttpPostAttribute() : base("POST") { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates that a request handler supports HTTP PUT operations
|
||||||
|
/// </summary>
|
||||||
|
public class HttpPutAttribute : HttpMethodAttribute
|
||||||
|
{
|
||||||
|
public HttpPutAttribute() : base("PUT") { }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Indicates that a request handler supports HTTP DELETE operations
|
||||||
|
/// </summary>
|
||||||
|
public class HttpDeleteAttribute : HttpMethodAttribute
|
||||||
|
{
|
||||||
|
public HttpDeleteAttribute() : base("DELETE") { }
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides OpenAPI operation metadata for a request handler
|
/// Provides OpenAPI operation metadata for a request handler
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user