Browse Source

Add variable for creating users

master
kolaente 1 year ago
parent
commit
551c51ec95
Signed by: konrad GPG Key ID: F40E70337AB24C9B
  1. 6
      create_users.sh

6
create_users.sh

@ -1,9 +1,11 @@
#!/bin/bash
#!/bin/sh
URL='http://localhost:3456'
for f in {1..100};
do
data="{\"username\":\"testuser${f}\",\"email\":\"testuser${f}@kolaente.de\",\"password\":\"1234\"}"
#echo $data
curl 'http://localhost:8080/api/v1/register' -H "accept: application/json" -H "Content-Type: application/json" -X POST -d ${data}
curl ${URL}/api/v1/register -H "accept: application/json" -H "Content-Type: application/json" -X POST -d ${data}
echo "";
done
Loading…
Cancel
Save