Hi all,
The question is not really related to the Ionic Framework, however…
I have one might be very simple question. I have to do a POST Request to check voucher validity. The post request uses URL Params only (without value with key only) and I am confused how to manage it from the app?
If someone of you have any idea or solution it will be highly appreciated!!!
Here is what I am trying to achieve:
This is the API endpoint which I have to call ( passing application_module and voucher values)
What I have tried so far:
let urlSearchParams = new URLSearchParams ();
urlSearchParams.append('', 'myapplicationmodule/');
urlSearchParams.append('', "myvouchercode");
return this.httpClient.post(environment.url, urlSearchParams );
Second attempt:
let application_module = 'xyz/';
let voucher = 'xyz'
return this.httpClient.post(environment.url, application_module + voucher );
None of above mentioned methods have success.
I am so confused how to achieve this POST call without key… Is there any way to do that?
Thanks in advance guys!!
1 post - 1 participant