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: ...

Get Get Programming with F# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.