You should have installed GO version >= 1.13.
git clone https://github.com/iostrovok/aura-test
cd aura-test
make run
It starts server on localhost:8080.
Open new console window and go to aura-test folder.
go run ./console/actions/main.go
or
go run ./console/simple_load/simple_load.go
Method "POST"
URL "/sessions"
Parameter "TTL" optional, positive integer, ttl <= 30
Method "GET"
URL "/sessions"
Method "DELETE"
URL "/sessions/{id}"
Method "PUT"
URL "/sessions/{id}" (default TTL 30 sec))
URL "/sessions/{id}/{ttl}" (ttl is positive integer, 0 < ttl <= 300)
curl -X POST http://localhost:8080/sessions
curl -X POST -d 'TTL=5' http://localhost:8080/sessions
curl -XGET 'http://localhost:8080/sessions'
curl -XPUT 'http://localhost:8080/sessions/<id>'
curl -XPUT 'http://localhost:8080/sessions/<id>/100'
curl -XDELETE 'http://localhost:8080/sessions/<id>'