This is a demo project for a SAMT Ktor server and client project.
The SAMT model is located in the model directory. It can be generated by running SAMT on the samt.yaml file:
cd model
./samtw compile
A simple Ktor server, which uses the generated SAMT provider to implement a basic greeter endpoint.
It can be started by using the Start Server
IntelliJ run configuration, or using the following CLI command:
./gradlew ktor-server:run
A simple application which calls the server using the generated SAMT consumer.
It can be started by using the Start Client
IntelliJ run configuration, or using the following CLI command:
./gradlew ktor-client:run