How to call REST API from within a App Service's Function


I need to call a REST API to another service from within an App Service’ s Function.
If anyone knows how to do this, could you please tell me how?


Hi @Enoooo,

The easiest way is to use context.http, otherwise you may want to try 3rd party npm packages, however you’ll need to check which version is compatible, as the node version emulated by the Functions environment is v10.

Hi Paolo,

Thank you for your reply.
Since context.http is likely to be abolished in the future,
I decided to install and use axios.


This post was flagged by the community and is temporarily hidden.