In the demo you will start Azure Function locally and will reach out the external API with text provided in request. Text will be translated to the Yoddish language.
- Obtain storage account connection string and update file
local.settings.json
- Open the folder in VS Code _ ..\Nodejs\HttpIntegration _
- In terminal run command npm install
- Run the project by use play button and make sure it is successfully started. Function console appears without errors.
-
Run the project from folder.
-
By using postman navigate to the local address: http://localhost:7071/api/TranslateToPiratish
-
Provide following query in request body:
{"text": "Master Obiwan has lost a planet!" }
- Response should looks like:
- You also can publish and run function from Azure Portal:
Note the external API is limited by 5 calls in hour!