When using a POST to the generate endpoint (eg: https://api.mockaroo.com/api/generate.sql?key=ABCDEFG&schema=mySchemaName
) specifying the SQL type results in an error:
{“error”:“undefined method `table_name’ for nil:NilClass”}
The same call to generate.json
or generate.csv
etc works as expected.
Passing table_name
as an additional query param does not help.
Has anyone been able to correctly use the POST endpoint to generate SQL inserts?