Skip to content
/ databrute Public

Create simple random generated data and send it as request

License

Notifications You must be signed in to change notification settings

se/databrute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

databrute

Create simple random generated data and send it as request

How to use?

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

For building project;

yarn b

For running it;

yarn go --count=100 --url=http://localhost:4020/people --formatted

Explanation;

--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

You will get random;

{
  "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
}

Adding as Global Command with dotnet-tool

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 👍

About

Create simple random generated data and send it as request

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages