In a javascript backend i usually use 'request' package to do hhtp calls to another external web service (REST Json).
In a Nestjs solution what's the best practice?
Thanks
I recommending using Axios
but since v5.x
* _which will be released soon_ * you could use HttpModule
HttpModule
is available already (in 4.6.6 as well). You can import it from @nestjs/common/http
. This module exposes HttpService
. 馃檪
It would be great if you add a sample about it in site documentation
@RezaRahmati Just add HttpModule to your imports in your app.module.ts and then inject HttpService into your constructor.
the syntax for HTTP get method because I m getting no response can anyone provide me
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
It would be great if you add a sample about it in site documentation