chore: adjust readme
This commit is contained in:
parent
4ce29da407
commit
cf67adffef
28
readme.md
28
readme.md
|
@ -10,3 +10,31 @@ sudo apt install build-essential --no-install-recommends
|
|||
sudo apt install libulfius-dev --no-install-recommends
|
||||
sudo apt install libconfig-dev --no-install-recommends
|
||||
```
|
||||
|
||||
## test API
|
||||
|
||||
* create
|
||||
```
|
||||
curl --data "name=Hi from curl!" http://<host>:<port>/entities/create
|
||||
curl -X POST --data "name=Hi from curl!" http://<host>:<port>/entities/create
|
||||
```
|
||||
|
||||
* read all
|
||||
```
|
||||
curl http://<host>:<port>/entities/info
|
||||
```
|
||||
|
||||
* read single
|
||||
```
|
||||
curl http://<host>:<port>/entities/35/info
|
||||
```
|
||||
|
||||
* update
|
||||
```
|
||||
curl --data "name=Hi from curl!" http://<host>:<port>/entities/1/update
|
||||
```
|
||||
|
||||
* delete
|
||||
```
|
||||
curl --request "DELETE" http://localhost:<port>/entities/1/delete
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue