From afb2bbf9b64fef1989a98f398424a6583c87068a Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 17 Sep 2021 11:44:10 +0100 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 0c78b81..cf3b7c7 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,31 @@ Run a service from source micro run github.com/micro/services/helloworld ``` +To call a service from another + +``` +import ( + pb "github.com/micro/services/db/proto" +) +``` + +## Clients + +API clients are generated in [clients](https://github.com/micro/services/tree/master/clients) + +To call a service via the api client import as follows + +``` +import "github.com/micro/services/clients/go/db" + +client := db.NewDbService($MICRO_API_TOKEN) +client.Create(...) +``` + +## Examples + +See the [examples](https://github.com/micro/services/tree/master/examples) directory + ## Contribute We welcome contributions of additional services which are then hosted on [m3o.com](https://m3o.com).