I implemented interface for http get, post,put requests but I am not finding any difference with/without interface.
code
public get_api<T>(path: string) {
return this.http.get<T>(API_ENDPOINT + path);
}
In Other component
this.http_global.get_api<Interface>('user').subscribe(.....=>);
Any one helps ?
Thanks In Advance !!!