Endpoint
This component is responsible for generating the correct routes for the endpoint and it's child endpoints. It also stores the current state of the endpoint.
Constructor Summary
Public Constructor | ||
public |
constructor(config: EndpointConfig, parent: Endpoint) Creates a new instance of Endpoint. |
Member Summary
Public Members | ||
public get |
Gets the current configuration and state of the endpoint. |
|
public get |
Gets the generated routes for the endpoint. |
|
public get |
Gets the generates routes for the endpoint and all its child endpoints. |
Method Summary
Public Methods | ||
public |
Generates the routes for the endpoint based on EndpointConfig.methods. |
Public Constructors
public constructor(config: EndpointConfig, parent: Endpoint) source
Creates a new instance of Endpoint.
Params:
Name | Type | Attribute | Description |
config | EndpointConfig | The configuration for the endpoint. |
|
parent | Endpoint |
|
The parent endpoint of this endpoint. |
Public Members
public get currentState: EndpointConfig: * source
Gets the current configuration and state of the endpoint.