TanmoySG / wunderDB

A micro JSON-based Data Store inspired by MongoDB.
http://wdb.tanmoysg.com/api/
Apache License 2.0
11 stars 0 forks source link

[Development] Update Response Model #120

Closed TanmoySG closed 1 year ago

TanmoySG commented 1 year ago

Currently the response has following field

{
    "action": "listRole",
    "status": "success",
    "error": {},
    "data": {}
}

The data field is misleading as response can be anything - database, collection, role, message, etc. This data field may also be confused with data/datum entity.

So to make it less confusing,

{
    "action": "listRole",
    "status": "success",
    "error": {},
    "data": {},
    "response" : {}
}