package
1.1.0
Repository: https://github.com/xuyiwenak/bamboorat.git
Documentation: pkg.go.dev

# README

REST API

This is an example of how to serve REST behind the API using go-restful

Getting Started

Run Micro API

$ micro api --handler=http

Run Greeter Service

go run greeter/srv/main.go

Run Greeter API

go run rest.go

Curl API

curl http://localhost:8080/greeter

Output

{
  "message": "Hi, this is the Greeter API"
}

Test a resource

 curl http://localhost:8080/greeter/asim

Output

{
  "msg": "Hello asim"
}