RestService

Note

  • Each request type requires a requestDetails object such as shown in the example

RestService acts as an abstraction layer for rest requests

         failureCallback: function | optional,
         data: object | optional
         aync: boolean | optional
     }

Example Request Details Structure

requestDetails = { url: string | mandatory, successCallback: function | mandatory, requestType: string | mandatory (pre-set in put,get,post,delete calls),

(Void) RestService(eventHub(Object) The event hub instance to use when raising events )

Param

  • eventHub

    (Object)

    The event hub instance to use when raising events