Discord | |
---|---|
kuzminki-zhttp-demo is an example REST API using kuzminki-zio-2 and zio-http.
This demo uses ZIO 2, zio-http 3.0.0-RC1 and kuzminki-zio-2 0.9.5-RC4.
Examples:
- Select, insert, update, delete
- Cached queries
- Streaming
- Jsonb field
- Array field
- Timestamp methods
CREATE DATABASE world;
psql world < db/world.pg
// src/main/resources/application.conf
db {
name = "world"
user = "<USER>"
pwd = "<PASS>"
}
If you use Postman you can import postman/demo.json
where all the endpoints are set up.
sbt run