Skip to content

CLI based REST client written in Golang for testing X-Road ( Straumurinn ) communications

License

Notifications You must be signed in to change notification settings

digitaliceland/xrd-rest-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rest-server

A REST test client to test X-Road services

Getting started

You can download compiled binaries for your architecture:

Parameter Options

  -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")

Usage examples

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

Debugging

You can run code directly with go like this:

$ go run main.go

Building

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

About

CLI based REST client written in Golang for testing X-Road ( Straumurinn ) communications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published