/FsHttpTriggerSample

F# HTTP Trigger Azure Functions Sample

Primary LanguagePowerShell

Azure Functions HTTP Trigger FSharp Sample

This sample shows how to build an Azure Function that processes HTTP requests using F#. See the blog post Create an HTTP Trigger Azure Function using FSharp for a detailed walk-through on how to build this sample.

Prerequisites

This solution was built using a Windows PC, but should work on Mac and Linux.

Run the Function Locally

To build or start application, use Cake script

PS> &.\build.ps1 -t start

Once the host is initialized, the function is available at the following endpoint http://localhost:7071/api/Greet.

Test the function

Make a HTTP POST request to http://localhost:7071/api/Greet.

You can compose request manually with curl or use greet.http file.

If successful, the response should look similar to the following output.

Hello Luis