- zio-http endpoint examples
- reading from file and sending files via http
curl -X 'POST' \
'http://localhost:8080/file' \
-H 'accept: application/json' \
-H 'Content-Type: application/octet-stream' \
--data-binary '@README.md'
curl -X 'GET' \
'http://localhost:8080/file' \
-H 'accept: application/octet-stream'
curl -X 'GET' \
'http://localhost:8080/status' \
-H 'accept: application/json'
sbt "runMain runner.Main"
and
curl --location 'http://localhost:8080/status'
or
curl --location 'http://localhost:8080/hello'
http://localhost:8080/docs/openapi
Relevant documentation: