Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:22
Show Gist options
  • Select an option

  • Save dacr/c4c346f3dad3fe5872e765d69bf68e04 to your computer and use it in GitHub Desktop.

Select an option

Save dacr/c4c346f3dad3fe5872e765d69bf68e04 to your computer and use it in GitHub Desktop.
Chronos API usage demo / published by https://github.com/dacr/code-examples-manager #c346b6fb-fea9-4627-80b7-9e180c6d3032/bbf5f80972cfd60cb952c1cc679cd60859fcb3d6
// summary : Chronos API usage demo
// keywords : scala,chronos, zio, tapir, http, http-server, demo
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : c346b6fb-fea9-4627-80b7-9e180c6d3032
// created-on : 2025-01-11T00:25:49+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// test-with : curl http://127.0.0.1:8080/chronos
// ---------------------
//> using scala 3.7.0
//> using dep com.softwaremill.sttp.client4::zio:4.0.7
//> using dep dev.zio::zio-json:0.7.43
// ---------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment