Class Entity<T>

Represents a URI-addressable resource

Type Parameters

  • T extends object = object

    Type of the properties property

Hierarchy

  • Entity

Implements

Indexable

[extension: string]: unknown

Constructors

  • Type Parameters

    • T extends object = object

    Returns Entity<T>

Properties

actions: Action[] = []

Available behavior exposed by the Entity

class: string[] = []

List of strings describing the nature of the Entity based on the current representation. Possible values are implementation-dependent and should be documented.

entities: SubEntity[] = []

Related entities represented as embedded links or representations

links: Link[] = []

Navigation links that communicate ways to navigate outside the entity graph

properties: T = ...

Key-value pairs describing the state of the Entity

title?: string

Descriptive text about the Entity

Methods

  • Returns the Action in actions with the given name, if it exists. Otherwise, returns undefined.

    Parameters

    • name: string

    Returns undefined | Action

Generated using TypeDoc