I am new to the Django framework. I want to create generic controller which can accept body as follows
{
"operation":"select",
"fields":["user_id","user_name","user_email"],
"table":"user",
"where":[
{
"field":"user_id",
"value":"1234",
"operator":"=",
"endwith":null
}
]
}
produce a proper SQL query and generate proper JSON output. there is any way to do this using Django rest framework?