Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
restangular
IProvider
Interface IProvider
Index
Methods
addElementTransformer
addFullRequestInterceptor
addRequestInterceptor
addResponseInterceptor
setBaseUrl
setDefaultHeaders
setDefaultHttpFields
setDefaultRequestParams
setEncodeIds
setErrorInterceptor
setExtraFields
setFullRequestInterceptor
setFullResponse
setJsonp
setMethodOverriders
setOnElemRestangularized
setParentless
setRequestInterceptor
setRequestSuffix
setResponseExtractor
setResponseInterceptor
setRestangularFields
setTransformOnlyServerElements
setUseCannonicalId
Methods
public
addElementTransformer
(
route
:
string
, transformer
:
Function
)
Parameters
route:
string
transformer:
Function
public
addElementTransformer
(
route
:
string
, isCollection
:
boolean
, transformer
:
Function
)
Parameters
route:
string
isCollection:
boolean
transformer:
Function
public
addFullRequestInterceptor
(
requestInterceptor
:
(element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: restangular.IRequestConfig) => { headers: any; params: any; element: any; httpConfig: restangular.IRequestConfig; }
)
Parameters
requestInterceptor:
(element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: restangular.IRequestConfig) => { headers: any; params: any; element: any; httpConfig: restangular.IRequestConfig; }
public
addRequestInterceptor
(
requestInterceptor
:
(element: any, operation: string, what: string, url: string) => any
)
Parameters
requestInterceptor:
(element: any, operation: string, what: string, url: string) => any
public
addResponseInterceptor
(
responseInterceptor
:
(data: any, operation: string, what: string, url: string, response: restangular.IResponse, deferred: ng.IDeferred<any>) => any
)
Parameters
responseInterceptor:
(data: any, operation: string, what: string, url: string, response: restangular.IResponse, deferred: ng.IDeferred<any>) => any
public
setBaseUrl
(
baseUrl
:
string
)
Parameters
baseUrl:
string
public
setDefaultHeaders
(
headers
:
any
)
Parameters
headers:
any
public
setDefaultHttpFields
(
httpFields
:
any
)
Parameters
httpFields:
any
public
setDefaultRequestParams
(
params
:
any
)
Parameters
params:
any
public
setDefaultRequestParams
(
method
:
string
, params
:
any
)
Parameters
method:
string
params:
any
public
setDefaultRequestParams
(
methods
:
Array<string>
, params
:
any
)
Parameters
methods:
Array<string>
params:
any
public
setEncodeIds
(
encode
:
boolean
)
Parameters
encode:
boolean
public
setErrorInterceptor
(
errorInterceptor
:
(response: restangular.IResponse, deferred: ng.IDeferred<any>) => any
)
Parameters
errorInterceptor:
(response: restangular.IResponse, deferred: ng.IDeferred<any>) => any
public
setExtraFields
(
fields
:
Array<string>
)
Parameters
fields:
Array<string>
public
setFullRequestInterceptor
(
fullRequestInterceptor
:
(element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: restangular.IRequestConfig) => { element: any; headers: any; params: any; }
)
Parameters
fullRequestInterceptor:
(element: any, operation: string, what: string, url: string, headers: any, params: any, httpConfig: restangular.IRequestConfig) => { element: any; headers: any; params: any; }
public
setFullResponse
(
fullResponse
:
boolean
)
Parameters
fullResponse:
boolean
public
setJsonp
(
jsonp
:
boolean
)
Parameters
jsonp:
boolean
public
setMethodOverriders
(
overriders
:
Array<string>
)
Parameters
overriders:
Array<string>
public
setOnElemRestangularized
(
callback
:
(elem: any, isCollection: boolean, what: string, restangular: restangular.IService) => any
)
Parameters
callback:
(elem: any, isCollection: boolean, what: string, restangular: restangular.IService) => any
public
setParentless
(
parentless
:
boolean
, routes
:
Array<string>
)
Parameters
parentless:
boolean
routes:
Array<string>
public
setRequestInterceptor
(
requestInterceptor
:
(element: any, operation: string, what: string, url: string) => any
)
Parameters
requestInterceptor:
(element: any, operation: string, what: string, url: string) => any
public
setRequestSuffix
(
suffix
:
string
)
Parameters
suffix:
string
public
setResponseExtractor
(
responseInterceptor
:
(data: any, operation: string, what: string, url: string, response: restangular.IResponse, deferred: ng.IDeferred<any>) => any
)
Parameters
responseInterceptor:
(data: any, operation: string, what: string, url: string, response: restangular.IResponse, deferred: ng.IDeferred<any>) => any
public
setResponseInterceptor
(
responseInterceptor
:
(data: any, operation: string, what: string, url: string, response: restangular.IResponse, deferred: ng.IDeferred<any>) => any
)
Parameters
responseInterceptor:
(data: any, operation: string, what: string, url: string, response: restangular.IResponse, deferred: ng.IDeferred<any>) => any
public
setRestangularFields
(
fields
:
{ [fieldName: string]: string; }
)
Parameters
fields:
{ [fieldName: string]: string; }
public
setTransformOnlyServerElements
(
active
:
boolean
)
Parameters
active:
boolean
public
setUseCannonicalId
(
useCannonicalId
:
boolean
)
Parameters
useCannonicalId:
boolean
Globals
jquery
ng
ng.auto
restangular
ICollection
ICollectionPromise
ICustom
IElement
IPromise
IProvider
addElementTransformer
addFullRequestInterceptor
addRequestInterceptor
addResponseInterceptor
setBaseUrl
setDefaultHeaders
setDefaultHttpFields
setDefaultRequestParams
setEncodeIds
setErrorInterceptor
setExtraFields
setFullRequestInterceptor
setFullResponse
setJsonp
setMethodOverriders
setOnElemRestangularized
setParentless
setRequestInterceptor
setRequestSuffix
setResponseExtractor
setResponseInterceptor
setRestangularFields
setTransformOnlyServerElements
setUseCannonicalId
IRequestConfig
IResponse
IService