A REST test client to test X-Road services
You can download compiled binaries for your architecture:
-client string
Your X Road Client ID (default "CS/ORG/1111/TestClient")
-cmd string
method to call on your REST server
-loop
repeatedly call the function every second
-service string
Your X Road Service ID (default "CS/ORG/1111/TestService/TEST123")
-ss string
Your X Road Security Server URL without trailing / (default "http://localhost:80")
Run the script and view help information:
$ ./rest-client
Full example calling the time service in a loop
$ ./rest-client -client CS/ORG/1111/TestClient -cmd time -loop -service CS/ORG/1111/TestService/TEST123 -ss http://localhost:80
You can run code directly with go like this:
$ go run main.go
This project requires Go to be installed. On OS X with Homebrew you can just run brew install go
Then to compile and run it just:
$ go build main.go
$ ./main
To build for multiple architectures we also provide a build script, build.sh