Files
services/notes
2021-03-18 17:21:41 +00:00
..
2021-01-27 11:03:21 +00:00
2021-03-18 17:21:41 +00:00
2020-10-16 13:13:18 +01:00
2020-10-19 20:24:03 +01:00
2021-01-19 16:59:25 +00:00
2021-01-19 16:59:25 +00:00

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

Notes Service

Create a note

micro notes create --title="HelloWorld" --text="MyFirstNote"
{
	"id": "6d3fa5c0-6e79-4418-a72a-c1650efb65d2"
}

Update a note

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

List notes

micro notes list
{
	"notes": [
		{
			"id": "6d3fa5c0-6e79-4418-a72a-c1650efb65d2",
			"created": "1602849877",
			"title": "HelloWorld",
			"text": "MyFirstNote (v2)"
		}
	]
}

Delete a note

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