Is valid data for table api
- This API is used to check the given data fields are as per the database schema, and it has valid values or not.
Request Method: POST
URL
Request payload
{
"first_name": 86,
"last_name": "Martin",
"phone": 7894561265,
"contact_email": "example@example.com"
}
Validate table data
Test data valid or not using global object 'g'.
API Response
{
"success": true,
"statusCode": 200,
"data": [
{
"type": "schemaKeyNotFound",
"field": "contact_email",
"message": "Property not found in schema for key 'contact_email'.",
"code": 400
},
{
"type": "required",
"field": "first_name",
"message": "Please provide valid 'first_name' field with type 'string'.",
"code": 400
}
]
}