1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-03-17 20:28:06 +02:00
Asim Aslam d94936f6c9
v3 (#2104)
* v3

* revert plugins

* fixup some issues
2021-01-20 13:54:31 +00:00
..
2021-01-20 13:54:31 +00:00
2020-12-26 15:17:20 +00:00
2021-01-20 13:54:31 +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"
}