Skip to content

Restadd mr5

Ghost User requested to merge (removed):restadd_mr5 into master-cakephp
  • Added support for REST or application/json request/response pairs which requires little or no changes to existing controllers.
    • returns responses like this for successfully adding a user
{
    "status": "success",
    "data": {
        "User": {
            "Username": "lessmisserables",
            "Disabled": 1,
            "id": "54"
        }
    }
}
  • returns responses like this for when validation fails
{
    "status": "fail",
    "message": {
        "Username": [
            "The username you have chosen has already been registered"
        ]
    }
}

Merge request reports

Loading