mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-23 17:53:05 +02:00
RPC API
This is an example of using an RPC based API
Getting Started
Run Micro API
micro api
Run Greeter Service
go run greeter/srv/main.go
Run Greeter API
go run rpc.go
Curl API
curl -H 'Content-Type: application/json' -d '{"name": "Asim"}' http://localhost:8080/greeter/hello
Output
{
"msg": "Hello Asim"
}