hey guys this is my response
{
"status": "validation_error",
"statusCode": "0003",
"message": {
"text": "",
"type": ""
},
"errors": [
{
"message": "سطح دسترسی پیدا نشد.",
"field": "role.permissions"
},
{
"message": "نوع کاربر باید بین مقادیر [client,admin] باشد.",
"field": "role.userType"
}
],
"data": {}
}
i want to log all message error
but i dont know the code in postman
im noob
and this is my code but its not compelete
if (pm.response.code === 200) {
var Data = pm.response.json();
var roleCode = Data.data.code;
var roleID = Data.data._id;
postman.setNextRequest("Get for new role");
}
else {
postman.setNextRequest("Get for new role ");
}