Server
Index
Constructors
constructor
Parameters
apiUrl: string
Returns Server
Properties
apiUrl
completeChunks
deleteAvailable
putAvailable
Methods
ajax
Parameters
path: string
data: { contentType?: boolean; data: any; processData?: boolean; type: string }
Returns JQueryPromise<any>
checkMethodAvailability
Parameters
method: DELETE | PUT
Returns Promise<boolean>
delete
Parameters
path: string
Returns JQueryPromise<any>
fetch
Parameters
path: string
optionaldata: any
Returns Promise<any>
get
Parameters
path: string
optionaldata: any
Returns JQueryPromise<any>
getUrl
Parameters
path: any
Returns any
post
Parameters
path: string
optionaldata: any
Returns JQueryPromise<any>
processObjectData
jQuery strips out empty arrays, making it impossible (for example) to delete the last image in collection Here we replace empty arrays with null values
Parameters
data: any
Returns void
put
Parameters
path: string
optionaldata: any
Returns JQueryPromise<any>
Server class is used to query mapsvg backend services