Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HalResource

Base class for all Resources

Hierarchy

Index

Constructors

constructor

Properties

Optional _links

_links: Map<string, HalLink>

Methods

Protected performActionWithoutResourceResponse

  • performActionWithoutResourceResponse(name: string, params: any, data: any, method?: POST | PATCH | PUT): Promise<void>
  • POST to an action endpoint with no resource response returned.

    Parameters

    • name: string
    • params: any
    • data: any
    • Default value method: POST | PATCH | PUT = HttpMethod.POST

    Returns Promise<void>

toJSON

  • toJSON(): any

toJson

  • toJson(): any

Private withHalLink

  • withHalLink(name: string): Promise<[HalLink, HalClient]>

Generated using TypeDoc