Class puredom.NativeAPI
- Defined in: NativeAPI.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
puredom.NativeAPI(api)
Generate a functional JavaScript interface on top of a REST-like API from a JSON API description.
|
| Field Attributes | Field Name and Description |
|---|---|
| <inner> |
Method Summary
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
puredom.NativeAPI.
clearCache
()
|
| <static> |
puredom.NativeAPI.
setAuthParameter
(key, value)
Set a paramter that will be passed on all requests that require authentiation (eg: a token).
|
| <static> |
puredom.NativeAPI.
setGlobalParameter
(key, value)
Set a paramter that will be passed on all requests.
|
Class Detail
puredom.NativeAPI(api)
Generate a functional JavaScript interface on top of a REST-like API from a JSON API description.
- Parameters:
- {Object} api
- The API description
- Returns:
- {Object} An object with methods corresponding to the API object's method descriptions.
Field Detail
<inner>
self
Method Detail
-
<static> puredom.NativeAPI.clearCache()
-
<static> puredom.NativeAPI.setAuthParameter(key, value)Set a paramter that will be passed on all requests that require authentiation (eg: a token).
- Parameters:
- {Any}key
- {Any}value
-
<static> puredom.NativeAPI.setGlobalParameter(key, value)Set a paramter that will be passed on all requests.
- Parameters:
- {Any}key
- {Any}value