Skip to content

guardrail-dev/guardrail-sample-sbt-http4s-zio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guardrail-sample-http4s-zio

A simple project to show what a guardrail+http4s+zio service could look like.

Some sample curls:

getInventory

curl localhost:8080/api/v3/store/inventory | jq .

getOrderById

curl localhost:8080/api/v3/store/order/123 | jq .
curl localhost:8080/api/v3/store/order/124 # 404

placeOrder

curl localhost:8080/api/v3/store/order \
        -H 'Content-Type: application/json' \
        --data '{"id": 124, "petId": 44, "quantity": 10}' \
        | jq .

About

Example of using http4s + catz + zio, clients and servers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages