Files
local-mini-kms/README.md
2023-08-13 15:26:49 +08:00

35 lines
522 B
Markdown

# local-mini-kms
Mini-KMS runs local written by Rust
## Startup Server
```shell
./local-mini-kms serve
```
```shell
./local-mini-kms cli --init
```
## Local Client
```shell
./local-mini-kms cli --offline-init
```
Write value:
```shell
curl -X POST http://127.0.0.1:5567/write \
-H "Content-Type: application/json" \
-d '{"name":"test","value":{"value":"hello"}}'
```
Read value:
```shell
curl -X POST http://127.0.0.1:5567/read \
-H "Content-Type: application/json" \
-d '{"name":"test"}'
```