mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-16 04:54:42 +00:00
Groups Service (#40)
This commit is contained in:
31
groups/README.md
Normal file
31
groups/README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# Groups Service
|
||||
|
||||
The group serivce is a basic CRUD service for groups. You can use it to create groups, add members and lookup which groups a user is a member of.
|
||||
|
||||
Example usage:
|
||||
|
||||
```bash
|
||||
$ micro groups create --name=Micro
|
||||
{
|
||||
"group": {
|
||||
"id": "e35562c9-b6f6-459a-b52d-7e6159465fd6",
|
||||
"name": "Micro"
|
||||
}
|
||||
}
|
||||
$ micro groups addMember --group_id=e35562c9-b6f6-459a-b52d-7e6159465fd6 --member_id=Asim
|
||||
{}
|
||||
$ micro groups list --member_id=Asim
|
||||
{
|
||||
"groups": [
|
||||
{
|
||||
"id": "e35562c9-b6f6-459a-b52d-7e6159465fd6",
|
||||
"name": "Micro",
|
||||
"member_ids": [
|
||||
"Asim"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
$ micro groups list --member_id=Boris
|
||||
{}
|
||||
```
|
||||
Reference in New Issue
Block a user