digitaliceland / xrd-rest-server

CLI based REST server written in Golang for testing x-road ( Straumurinn ) communications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rest-server

A REST test webservice to test X-Road services

Getting started

You can download compiled binaries for your architecture:

Usage examples

Then run the script to bind to the port requested. E.g. for localhost, port 1234 please use:

$ ./rest-server --addr 127.0.0.1:1234

To bind to all IP addresses on the box on port 7777:

$ ./rest-server --addr :7777

By default it binds to :1234

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 server written in Golang for testing x-road ( Straumurinn ) communications

License:GNU General Public License v2.0


Languages

Language:Go 80.8%Language:Shell 19.2%