src/app/modules/core/services/data/data.service.ts
Service to provide base CRUD methods to make api request.
Properties |
Methods |
|
constructor(http: HttpClient)
|
||||||
Parameters :
|
delete | ||||||||
delete(requestParam: RequestParam)
|
||||||||
for making delete api calls
Parameters :
Returns :
Observable<ServerResponse>
|
get | ||||||||
get(requestParam: RequestParam)
|
||||||||
for making get api calls
Parameters :
Returns :
Observable<ServerResponse>
|
Private getDateDiff | ||||
getDateDiff(serverdate)
|
||||
Parameters :
Returns :
number
|
Private getHeader | ||||
getHeader(headers?)
|
||||
for preparing headers
Parameters :
|
getWithHeaders | ||||||||
getWithHeaders(requestParam: RequestParam)
|
||||||||
for making get api calls which needs headers in response headers are fetched to get server time using Date attribute in header
Parameters :
Returns :
Observable<ServerResponse>
|
patch | ||||||||
patch(requestParam: RequestParam)
|
||||||||
for making patch api calls
Parameters :
Returns :
Observable<ServerResponse>
|
post | ||||||||
post(requestParam: RequestParam)
|
||||||||
for making post api calls
Parameters :
Returns :
Observable<ServerResponse>
|
postWithHeaders | ||||||||
postWithHeaders(requestParam: RequestParam)
|
||||||||
for making post api calls with headers in response object
Parameters :
Returns :
Observable<any>
|
put | ||||||||
put(requestParam: RequestParam)
|
||||||||
for making PUT api calls
Parameters :
Returns :
Observable<ServerResponse>
|
appId |
Type : string
|
Contains appId |
appVersion | ||||
Type : string
|
||||
Constructor |
||||
Parameters :
|
baseUrl |
Type : string
|
Contains base Url for api end points |
channelId |
Type : string
|
Contains channel Id |
deviceId |
Type : string
|
Contains devoce Id |
http |
Type : HttpClient
|
angular HttpClient |
rootOrgId |
Type : string
|
Contains rootOrg Id |
Static sessionId |
Type : string
|
Static userId |
Type : string
|