diff --git a/notes/README.md b/notes/README.md index 2a4445c..3fd8cc3 100644 --- a/notes/README.md +++ b/notes/README.md @@ -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": [ { @@ -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 {} -``` \ No newline at end of file +```