Method CreateEndpointBadge
- Namespace
- Sisk.Documenting.Html
- Assembly
- Sisk.Documenting.Html.dll
CreateEndpointBadge(RouteMethod, string?)
Creates an HTML badge element for an API endpoint.
protected virtual HtmlElement? CreateEndpointBadge(RouteMethod method, string? path)
Parameters
method
RouteMethodThe HTTP method of the endpoint (e.g. GET, POST, PUT, etc.).
path
stringThe path of the endpoint, or null for no path display.
Returns
- HtmlElement
The HTML element representing the endpoint badge, or null if no badge is applicable.