Open Fcmam5 opened 3 months ago
For the future:
Return less verbose errors, now the API returns this for example:
{ "success": false, "result": null, "message": "Cannot read properties of undefined (reading 'replace')", "error": {}, "controller": "isValidAuthToken" }
Also, responses are returning non-mapped objects, e.g:
{ "success": true, "result": { "_id": "XXX", "removed": false, "enabled": true, "account": "XXX", "branch": "XXX", "settingCategory": "email_settings", "settingKey": "email_reply_to", "settingValue": "reply@idurarapp.com", "valueType": "string", "isPrivate": false, "isCoreSetting": false, "__v": 0 }, "message": "we found this document " }
I think this should only return what clients need
For the future:
Return less verbose errors, now the API returns this for example:
Also, responses are returning non-mapped objects, e.g:
I think this should only return what clients need