app-generator/api-server-laravel

Tests / Edit User - Expected I/O

app-generator opened this issue · 0 comments

API URL : http://localhost:5000/api/users/edit

Request Headers

  • Content-Type: application/json
  • authorization: JWT_TOKEN_HERE

Request Body

 {
        "userID": "1",
        "username": "test_updated",
        "email": "test_updated@appseed.us"
}

Response For success

{
    "success": true
}

Response for error (token inactive, mismatch userId / token)

{
    "success": false,
    "msg": "Error updating user"
}