Sisk

Method

HtmlDocumentationExporter.CreateEndpointBadge

Namespace
Sisk.Documenting.Html
Assembly
Sisk.Documenting.Html.dll

CreateEndpointBadge(RouteMethod, string?) #

Creates an HTML badge element for an API endpoint.

C#
protected virtual HtmlElement? CreateEndpointBadge(RouteMethod method, string? path)

Parameters #

method RouteMethod

The HTTP method of the endpoint (e.g. GET, POST, PUT, etc.).

path string?

The 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.

Type to search the documentation and the API reference.