O'Reilly logo

Get Programming with F#: A guide for .NET developers by Isaac Abraham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lesson 37. Exposing data over HTTP

In this lesson, you’ll look at ways to create HTTP-enabled APIs by using F# on the .NET platform. First, you’ll do this by using the well-known Microsoft ASP .NET framework, using the Web API component; you’ll then move on to looking at an alternative web technology, Suave. You’ll learn about

  • Working with the ASP .NET Web API and F#
  • Reasoning about HTTP response codes in F#
  • Working with Async and ASP .NET
  • Using Suave, an F#-first web application model

37.1. Getting up and running with the ASP .NET Web API

Let’s jump straight into this lesson and dispel any fears that your ASP .NET applications are somehow not compatible with F# by creating an ASP .NET application, in F#! You’ll look at two hosting mechanisms: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required