mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-16 13:04:34 +00:00
Update README.md
This commit is contained in:
@@ -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
|
||||
{}
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user