mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +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") { }
|
||||
}
|
||||
|
||||
/// <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>
|
||||
/// Provides OpenAPI operation metadata for a request handler
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user