Sisk

Method

JsonContentTypeHandler.GetBodyExampleForType

Namespace
Sisk.Documenting.Content
Assembly
Sisk.Documenting.dll

GetBodyExampleForType(Type) #

Generates a JSON body example for the specified type.

C#
public virtual BodyExampleResult? GetBodyExampleForType(Type type)

Parameters #

type Type

The type to generate an example for.

Returns #

BodyExampleResult?

A BodyExampleResult containing the JSON example, or null if the type cannot be handled.

Type to search the documentation and the API reference.