Class SseStreamingEndpoint
- Namespace
- TypedRest.CodeGeneration.Endpoints.Reactive
- Assembly
- TypedRest.CodeGeneration.dll
Endpoint for a stream of entities using Server-Sent Events (SSE).
public class SseStreamingEndpoint : Endpoint, IEndpoint, IOpenApiSerializable, IOpenApiElement, IOpenApiExtension
- Inheritance
-
objectSseStreamingEndpoint
- Implements
- Inherited Members
- Extension Methods
Properties
EventType
If set, only events with this event: type are emitted; others are ignored.
public string? EventType { get; set; }
Property Value
Kind
The kind/type of endpoint.
public override string Kind { get; }
Property Value
Schema
Schema describing the representation of individual elements in the stream.
public IOpenApiSchema? Schema { get; set; }
Property Value
Methods
Parse(JsonObject, IEndpointParser)
Fills the endpoint with information parsed from a JSON object in an OpenAPI document.
public override void Parse(JsonObject data, IEndpointParser parser)
Parameters
dataJsonObjectThe JSON object to parse.
parserIEndpointParserThe endpoint parser to use for parsing child objects.
ResolveReferences(OpenApiDocument)
Resolves OpenApiSchemaReferences against the schema components of a document.
public override void ResolveReferences(OpenApiDocument document)
Parameters
documentOpenApiDocumentThe document that references can point to.
WriteBody(IOpenApiWriter, OpenApiSpecVersion)
Writes this endpoint description to an OpenAPI document.
protected override void WriteBody(IOpenApiWriter writer, OpenApiSpecVersion specVersion)
Parameters
writerIOpenApiWriterThe write to write to.
specVersionOpenApiSpecVersionThe OpenAPI Spec version to use.