2 changed files with 29 additions and 5 deletions
@ -0,0 +1,12 @@ |
|||
#!/bin/bash |
|||
|
|||
echo 'Content of the db :' |
|||
curl -s -X GET http://localhost:8080/ | jq |
|||
|
|||
echo 'Add some data to the db :' |
|||
curl -s -X POST http://localhost:8080/ -d '{"username":"one", "title": "dev"}' | jq |
|||
curl -s -X POST http://localhost:8080/ -d '{"username":"two", "title": "ops"}' | jq |
|||
|
|||
|
|||
echo 'Content of the db :' |
|||
curl -s -X GET http://localhost:8080/ | jq |
Loading…
Reference in new issue