Hi,
I'm going to add the nativescript-https to my Nativescript/Angular app. I already have a very large number of API calls created using HTTPClient Module.
So, for example, my API calls are so structured:
firstApiCall() {
let httpParams = new HttpParams();
...adding parameters...
return this.http.get<number>(`my_url`, {
params: httpParams
})
.pipe(
map((data) => {
return data
})
);
}
Hi, I'm going to add the nativescript-https to my Nativescript/Angular app. I already have a very large number of API calls created using HTTPClient Module. So, for example, my API calls are so structured:
with interceptor:
To avoid manually changing each call (which would take an infinite amount of time) is there a way to create a wrapper?