30 lines
350 B
Markdown
30 lines
350 B
Markdown
|
# Soostone
|
||
|
|
||
|
## Start
|
||
|
|
||
|
First create tables:
|
||
|
|
||
|
```sh
|
||
|
soostone create-tables
|
||
|
```
|
||
|
|
||
|
Then start backend:
|
||
|
|
||
|
```sh
|
||
|
soostone run
|
||
|
```
|
||
|
|
||
|
## Request examples
|
||
|
|
||
|
### Insert
|
||
|
|
||
|
```sh
|
||
|
curl -v -H 'Content-Type: application/json' -X POST --data '"abc"' http://localhost:9000/api/v1/input
|
||
|
```
|
||
|
|
||
|
### Query
|
||
|
|
||
|
```sh
|
||
|
curl -v -X GET 'http://localhost:9000/api/v1/query?key=abc'
|
||
|
```
|