Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Issue: Mockaroo API POST generate(.format) - SQL and XML

$
0
0

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.


Viewing all articles
Browse latest Browse all 2665

Latest Images

Trending Articles



Latest Images