Update README.md

This commit is contained in:
Asim Aslam
2020-11-17 22:26:58 +00:00
committed by GitHub
parent 25ae1f2b98
commit 1a000e916f

View File

@@ -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: 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 ```bash
> micro notes create --title="HelloWorld" --text="MyFirstNote" micro notes create --title="HelloWorld" --text="MyFirstNote"
{ {
"id": "6d3fa5c0-6e79-4418-a72a-c1650efb65d2" "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": [ "notes": [
{ {
@@ -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
{} {}
``` ```