gbih / fsharp-suave-api-todo

Matthew Doig's excellent article "Building Your First Web API with .NET Core and Suave.io", built using .NET Core 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick Setup

Clone this repo, then:

$ dotnet build
$ dotnet run

Use a tool like Postman to test the API endpoints:

GET  http://127.0.0.1:8080/api/todo
POST http://127.0.0.1:8080/api/todo

or curl:

$  curl -v http://127.0.0.1:8080/api/todo
$  curl -v -d '{ "name": "Test1", "isComplete": true }' -H "Content-Type: application/json" -X POST http://127.0.0.1:8080/api/todo

About

Matthew Doig's excellent article "Building Your First Web API with .NET Core and Suave.io", built using .NET Core 2.0


Languages

Language:F# 100.0%