Class: Resource

.Service. Resource


new Resource()

Resource class to handle REST from Node

Note: URL property is required

Source:

Extends

  • Augmented.Model

Members


<static> secure

Properties:
Name Type Description
secure string

The secure flag

Source:

<static> url

Properties:
Name Type Description
url string

The url for the REST Service

Source:

Methods


<static> fetch Fetch the Resource(options)

Parameters:
Name Type Description
options object

Any options to pass

Source:

<static> init Custom init method for the model (options)

Parameters:
Name Type Description
options object

Any options to pass

Source:

<static> initialize Initialize the model with needed wiring(options)

Parameters:
Name Type Description
options object

Any options to pass

Source:

<static> sync Sync method to handle REST functions for the model(method, options)

Parameters:
Name Type Description
method string

the operation to perform

options object

Any options to pass

Source: