Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asim authored Nov 17, 2020
1 parent 25ae1f2 commit 1a000e9
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions notes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@

Notes service is an RPC service which offers CRUD for notes. It demonstrates usage of the store, errors and logger pacakges. Example usage:

Create a note

```bash
> micro notes create --title="HelloWorld" --text="MyFirstNote"
micro notes create --title="HelloWorld" --text="MyFirstNote"
{
"id": "6d3fa5c0-6e79-4418-a72a-c1650efb65d2"
}
> micro notes update --id=6d3fa5c0-6e79-4418-a72a-c1650efb65d2 --title="HelloWorld" --text="MyFirstNote (v2)"
```

Update a note

```bash
micro notes update --id=6d3fa5c0-6e79-4418-a72a-c1650efb65d2 --title="HelloWorld" --text="MyFirstNote (v2)"
{}
> micro notes list
```

List notes

```bash
micro notes list
{
"notes": [
{
Expand All @@ -20,6 +32,11 @@ Notes service is an RPC service which offers CRUD for notes. It demonstrates usa
}
]
}
> micro notes delete --id=6d3fa5c0-6e79-4418-a72a-c1650efb65d2
```

Delete a note

```bash
micro notes delete --id=6d3fa5c0-6e79-4418-a72a-c1650efb65d2
{}
```
```

0 comments on commit 1a000e9

Please sign in to comment.