Last active
April 5, 2025 07:36
-
-
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/b11929ba611a40c7aeb3caab900d5c310fd224f6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// summary : Chronos API usage demo | |
// keywords : scala,chronos, zio, tapir, http, http-server, demo | |
// publish : gist | |
// authors : David Crosson | |
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
// 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.6.4 | |
//> using dep com.softwaremill.sttp.client4::zio:4.0.0-RC3 | |
//> using dep dev.zio::zio-json:0.7.39 | |
// --------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment