is
Valid
Request
private open fun isValidRequest(id: String, token: String, payload: GroupDTO, editingMode: Boolean): String
Method to check the validity of a request between createGroup and editGroup
Return
the result of the validation as String
Parameters
id
The identifier of the user
token
The token of the user
payload
: payload of the request
{
"logo" : "logo of the group", -> [String]
"name" : "name of the group", -> [String]
"group_description": "description of the group", -> [String]
"members" : [ -> [List of Strings or empty]
// id of the group member -> [String]
],
"projects" : [ -> [List of Strings or empty]
// id of the projects -> [String]
]
}
Content copied to clipboard