1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-23 17:53:05 +02:00
2020-12-26 15:21:29 +00:00
..
2020-12-26 15:21:29 +00:00
2020-12-26 15:17:20 +00:00
2020-12-26 15:21:29 +00: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"
}