Update README.md

This commit is contained in:
Asim Aslam
2021-09-17 11:44:10 +01:00
committed by GitHub
parent b7906fd72f
commit afb2bbf9b6

View File

@@ -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).