Home Reference Source
import {Resource} from '@fnndsc/chrisstoreapi'
public class | source

Resource

Direct Subclass:

ItemResource, ListResource

API abstract resource class.

Constructor Summary

Public Constructor
public

constructor(resourceUrl: string, auth: Object)

Constructor

Member Summary

Public Members
public
public
public
public get

Return true if the resource object contains any data.

public

Method Summary

Public Methods
public

Make a deep copy clone of this object resource.

Public Constructors

public constructor(resourceUrl: string, auth: Object) source

Constructor

Params:

NameTypeAttributeDescription
resourceUrl string

url of the resource

auth Object
  • optional
  • default: null

authentication object

auth.token string
  • optional

authentication token

Public Members

public auth: Object source

public collection: Object source

public contentType: string source

public get isEmpty: boolean source

Return true if the resource object contains any data.

public url: string source

Public Methods

public clone(): Object source

Make a deep copy clone of this object resource.

Return:

Object

clone object