You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
357 B

#!/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