Sample Hello World Saturn F# Framework Application
Saturn Website: https://saturnframework.org/ Saturn Docs: https://saturnframework.org/docs/
- Create a new directory for your application.
- Navigate to your newly created directory and use the .NET CLI to create an F# Console application.
dotnet new console -lang F#
- Use the .NET CLI to add the
Saturn
package.
dotnet add package Saturn
- Replace the contents of your Program.fs file with those in this projects Program.fs file.
dotnet build
dotnet run
GET http://localhost:7078/api/values
[
1,
2,
3
]
GET http://localhost:7078/api/values/1
{
"case": "Some",
"fields": [
1
]
}