Create simple random generated data and send it as request
I'm using yarn (or npm) for scripting. If you don't have it, please install it first;
## If you don't have yarn
npm install -g yarn
yarn b
yarn go --count=100 --url=http://localhost:4020/people --formatted
--count
is your data count that you want to generate
--formatted
will write it your console as formatted.
--url
if you put this, it will post it to that url
{
"userId": "12460bc6-d792-4a2e-a5b7-7d99147579ec",
"isActive": false,
"firstName": "Willis",
"lastName": "Ortiz",
"avatarUrl": "https://s3.amazonaws.com/uifaces/faces/twitter/benoitboucart/128.jpg",
"age": 20,
"hairColor": "black",
"name": {
"first": "Willis",
"last": "Ortiz"
},
"userName": "Willis11",
"company": "Nolan - Schoen",
"email": "Willis.Ortiz1@gmail.com",
"phone": "423-649-6846 x474",
"address": "04591 Herzog Court, Dallasmouth, Bolivia",
"gender": 0,
"fullName": "Willis Ortiz",
"id": 11958
}
dotnet tool install -g dotnet-databrute
And now, you can use all commands just typing databrute --count=100 --url=http://localhost:4020/people --formatted
.
This project is using Bogus and Newtonsoft.Json.
Feel free to contribute 👍