the object used to assign the properties
This property is true when the self link exists and either
methods array does not exist in the self link or the array
exists and contains POST string. It is false otherwise.
This property is true when the self link exists and either
methods array does not exist in the self link or the array
exists and contains DELETE string. It is false otherwise.
This property is true when the self link exists and either
methods array does not exist in the self link or the array
exists and contains GET string. It is false otherwise.
This property is true when the self link exists and either
methods array does not exist in the self link or the array
exists and contains PUT string. It is false otherwise.
The URI of self link.
Create a new resource in the collection identified by self link.
It makes a POST call to the URI in self link and returns an
observable for the call. The observable emits an accessor for
the newly created resource. The self link in the accessor
may be set to undefined if Location header is not returned by
the call.
the payload for the POST method call
an observable of the resource's accessor
Delete the resource identified by self link.
an observable that emits next signal on successful delete
Returns a single embedded resource or undefined if no such
embedded exists. If the named resource is an array it returns
the first element.
the resource type
the name of the embedded resource
the resource or undefined
Returns an embedded array of resources or undefined if the named
embedded does not exist. If the named resource is not an array it
wraps the resource in an array.
the element resource type
the name of the embedded resource array
the resource array or undefined
Clones the resource instance and allows to modify the clone's properties using the provided function.
the update function to apply to the clone
the updated clone of the resource
Refresh the resource. In other words, read the resource
identified by self link.
an observable of the refreshed resource instance
Persist the resource. Uses PUT request to send the new resource
state.
an observable of the resource instance
This class represents an in-memory instance of a HAL resource.