example

command
v0.0.0-...-33569dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 6 Imported by: 0

README

Example server

  1. Build
go build server.go && ./server
  1. Send requests to localhost:65534.

For example:

curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"healthStatus","params":{"message":""},"id":"1234"}' http://localhost:65534

or

curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"getHealthStatus","params":{"message":"123"},"id":"1234"}' http://localhost:65534

or

curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"getHealthStatus","id":"1234"}' http://localhost:65534

or

curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"getHealthStatus","params":{},"id":"1234"}' http://localhost:65534

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL