Skip to content

doubleloop-io/intro-fp-cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro to Functional Programming in C#

Useful Commands

Run build:

$ dotnet build

Run tests:

$ dotnet test
# or with file watcher
$ dotnet watch test

Demo Web API

Add an item

curl -X 'POST' \
  'http://localhost:5023/item' \
  -H 'Content-Type: application/json' \
  -d '{ "name": "foo", "qty": 100 }'
# response: OK 33a2bd17-37ff-4caa-937f-9258d7a4c47e

Check in items

curl -X 'POST' \
  'http://localhost:5023/item/checkin' \
  -H 'Content-Type: application/json' \
  -d '{ "id": "33a2bd17-37ff-4caa-937f-9258d7a4c47e", "qty": 10 }'
# response: OK

Get an item

curl -X 'GET' \
  'http://localhost:5023/item/33a2bd17-37ff-4caa-937f-9258d7a4c47e'
# response: OK {"id":"e8345cea-68fc-4a37-bc4f-2cc308f92838","name":"foo","qty":110}

Documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages