- Generates data based on json schema provided.
- Generates data in batches using virtual threads.
- Size of a batch is 1000(default size). Can be changed by overwriting the property
data.file.gen.batch.size
inapplication.properties
file. - Sample Request for calling the
POST
endpointhttp://localhost:8081/json/data/generate
: -
{ "schema": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "firstName": { "type": "string" }, "lastName": { "type": "string" }, "status": { "type": "boolean" }, "favColor": { "enum": [ "red", "amber", "green", "orange", "blue" ] }, "Address": { "type": "object", "properties": { "line1": { "type": "string" }, "line2": { "type": "string" } } } } }, "noOfTimes": 10, "outputFilePath": "D:\\data\\__generated__\\file.json", "genType": "FILE_GEN" }
-
Notifications
You must be signed in to change notification settings - Fork 0
SB-DevX/data-gen
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Spring Boot Project For Creating Json Data
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published