barakb / rest-server-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build Renovate enabled

Setup environment (one time)

  1. use sdkman to install java 17 and maven (build tool) (blog)
sdk install java 17.0.5-amzn
sdk install maven

Build

  1. use sdkman to select the right jvm for this project
## select the jvm from .sdkmanrc in this project
sdk env
  1. build using maven
mvn clean install 

Run

java -jar target/rest-server-demo-0.0.1-SNAPSHOT.jar

Test

curl -X POST localhost:8080/set -H "Content-Type: application/json" -d '{"name":"foo","number":1}'
curl -X GET localhost:8080/get

About


Languages

Language:Kotlin 100.0%