Skip to content

kevinschmidt/learn-scala-tapir-http4s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Scala: Simple HTTP API with Http4s and Tapir

Path: /math/{operation}/calculate
Request: {"x":10, "y":27}
Response: {"result":"37"}

Example query:

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"x":"10","y":"27"}' \
  http://localhost:8080/math/plus/calculate

Prerequisites:

brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk11
brew install sbt

About

learn scala: simple http api with http4s and tapir

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages