Menu
©2015
Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2015-1-16 18:32

Class puredom.NativeAPI

Class Summary
Constructor Attributes Constructor Name and Description
 
Generate a functional JavaScript interface on top of a REST-like API from a JSON API description.
Field Summary
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