rest api - custom response

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
qqblog
User
Posts: 1

rest api - custom response

Post by qqblog »

can we customise the json response for error eg. field format error ?

if failed

{
    "success": false,
    "version": "19.0.0",
    "error": {
        "code": 202
 "description": "xxxxxxxx"
    }
}

if success

{
    "success": true,
    "version": "19.0.0",
    "cars": {
        "ID": 16,
        "Trademark": 1,
        ...
    }
}

arbei
User
Posts: 9288

Post by arbei »


Post Reply