testing/create_users.sh

12 lines
308 B
Bash
Raw Permalink Normal View History

2020-05-14 16:37:43 +00:00
#!/bin/sh
URL='http://localhost:3456'
2018-12-09 22:23:42 +00:00
2018-12-09 23:36:00 +00:00
for f in {1..100};
2018-12-09 22:23:42 +00:00
do
data="{\"username\":\"testuser${f}\",\"email\":\"testuser${f}@kolaente.de\",\"password\":\"1234\"}"
#echo $data
2020-05-14 16:37:43 +00:00
curl ${URL}/api/v1/register -H "accept: application/json" -H "Content-Type: application/json" -X POST -d ${data}
2019-01-17 13:41:56 +00:00
echo "";
2018-12-09 22:23:42 +00:00
done