create Group

@PostMapping(headers = [] )
open fun createGroup(@PathVariable(value = "id") id: String, @RequestHeader(value = "token") token: String, @ModelAttribute payload: GroupDTO): String

Method to create a new group

Return

the result of the request 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]
                                 ]
                             }