# ResourceProxy
Kind: global class
# new ResourceProxy()
ResourceProxy
A wrapper class for the available methods on a route. The actual proxied Fetch-clients will only be created once the first request on a method is made.
# resourceProxy.addRoute(route)
Adds a method to the resource
Kind: instance method of ResourceProxy
| Param | Type |
|---|---|
| route | Route |
# resourceProxy.methodNotAvailable(methodName)
Used by the resource method availability checks to indicate a missing method.
Kind: instance method of ResourceProxy
| Param | Type |
|---|---|
| methodName | string |
# resourceProxy.get(parameters, data) ⇒
Kind: instance method of ResourceProxy
Returns: Function
| Param | Type |
|---|---|
| parameters | Array |
| data | Object |
# resourceProxy.list(parameters, data) ⇒
Kind: instance method of ResourceProxy
Returns: Function
| Param | Type |
|---|---|
| parameters | Array |
| data | Object |
# resourceProxy.create(parameters, data) ⇒
Kind: instance method of ResourceProxy
Returns: Function
| Param | Type |
|---|---|
| parameters | Array |
| data | Object |
# resourceProxy.replace(parameters, data) ⇒
Kind: instance method of ResourceProxy
Returns: Function
| Param | Type |
|---|---|
| parameters | Array |
| data | Object |
# resourceProxy.update(parameters, data) ⇒
Kind: instance method of ResourceProxy
Returns: Function
| Param | Type |
|---|---|
| parameters | Array |
| data | Object |
# resourceProxy.delete(parameters, data) ⇒
Kind: instance method of ResourceProxy
Returns: Function
| Param | Type |
|---|---|
| parameters | Array |
| data | Object |