Description Usage Arguments Value Examples
By supplying a number of parameters and a target schema, this function returns mock data.
1 | mockaroo(outputFormat, queryArgs, schema)
|
outputFormat |
Desired response format c("csv", "json", "txt", "custom") |
queryArgs |
List of arguments regarding the overall query, must include "key = mykey" |
schema |
A JSON representation of the desired schema. Request body |
Mocked data
1 2 3 4 5 6 7 8 9 10 11 | basicSchema<-data.frame(
name = "blah"
, percentBlank = 0
, type = "Color"
)
mockaroo("json"
, list( key = "48b71860"
, count = 10)
, schema = jsonlite::toJSON(basicSchema)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.