POST /mongodb/_schema/{table_name} does not work as expected
Steps to reproduce this error:
-
Open Live API: https://www.dreamfactory.com/developers/live_API
-
Open POST /mongodb/_schema/{table_name}
Documetdation for this API method says: “createTable() - Create a table with the given properties and fields.” -
Set required fields:
table_name: elephants
schema:{
“name”: “elephants”,
“label”: “elephant”,
“plural”: “elephants”,
“name_field”: “name”,
“field”: [
{
“name”: “name”,
“label”: “Elephant name”,
“type”: “string”
}
]
} -
Click “Try It out!”
Expected result: new collection in MongoDB, named "elephants"
Actual result: error (Table ‘elephants’ not found.)
Details:
Request URL: https://dsp-sandman1.cloud.dreamfactory.com:443/rest/mongodb/_schema/elephants
Responce Body:
{
"error": [
{
"context": null,
"message": "Table 'elephants' not found.",
"code": 404
}
]
}
I got same error in my local DreamFactory installation (permissions is not a problem here)