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 Piratish language.
- Obtain storage account connection string and update file
local.settings.json - Open the project _ TranslateToPirate.sln _
- Open project and make sure it is successfully started. Function console appears without errors.
-
Run the project.
-
By using postman navigate to the local address: http://localhost:7071/api/TranslateToPiratish
-
Provide following query in request body:
{"text":"My mother goes with me to the ocean!"}- Response should looks like:
Note the external API is limited by 5 calls in hour!
