From 551c51ec95d27946bdcdd15ec1785ae7a4b84aab Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 14 May 2020 18:37:43 +0200 Subject: [PATCH] Add variable for creating users --- create_users.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/create_users.sh b/create_users.sh index 5ccb344..5388fec 100755 --- a/create_users.sh +++ b/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