Add variable for creating users
This commit is contained in:
parent
ba742a259a
commit
551c51ec95
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
|
URL='http://localhost:3456'
|
||||||
|
|
||||||
for f in {1..100};
|
for f in {1..100};
|
||||||
do
|
do
|
||||||
data="{\"username\":\"testuser${f}\",\"email\":\"testuser${f}@kolaente.de\",\"password\":\"1234\"}"
|
data="{\"username\":\"testuser${f}\",\"email\":\"testuser${f}@kolaente.de\",\"password\":\"1234\"}"
|
||||||
#echo $data
|
#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 "";
|
echo "";
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue