When using a POST request to the generate ENDPOINT for either SQL or XML format, result in an error:
XML- {“error”:“undefined method `xml_root_element’ for nil:NilClass”}
SQL - {“error”:“undefined method `table_name’ for nil:NilClass”}
I tried passing a table_name
query parameter for the SQL format like:
requests.post(“https://api.mockaroo.com/api/generate.sql schema=Person&table_name=personkey=my_api_key”)
As see other users are having similar issues:
Has anyone else encountered these errors and found a solution? I’ve tried various combinations of query parameters without success. Any help or insights from Mockaroo support would also be appreciated.
Thanks in advance.