Table of Contents

Interface IEndpoint

Namespace
TypedRest.CodeGeneration.Endpoints
Assembly
TypedRest.CodeGeneration.dll

Represents a TypedRest endpoint.

public interface IEndpoint : IOpenApiSerializable, IOpenApiElement, IOpenApiExtension
Inherited Members

Properties

Children

The child endpoints of this endpoint.

IDictionary<string, IEndpoint> Children { get; }

Property Value

IDictionary<string, IEndpoint>

Description

A short description of the endpoint.

string? Description { get; set; }

Property Value

string

Kind

The kind/type of endpoint.

string Kind { get; }

Property Value

string

Uri

The relative URI of the endpoint.

string? Uri { get; set; }

Property Value

string

Methods

Parse(OpenApiObject, IEndpointParser)

Fills the endpoint with information parsed from an OpenAPI Object.

void Parse(OpenApiObject data, IEndpointParser parser)

Parameters

data OpenApiObject

The OpenAPI Object to parse.

parser IEndpointParser

The endpoint parser to use for parsing child objects.

ResolveReferences(OpenApiComponents)

Resolves OpenApiReferences.

void ResolveReferences(OpenApiComponents components)

Parameters

components OpenApiComponents

The components that references can point to.