work With Project

private open fun workWithProject(id: String, token: String, payload: ProjectDTO, projectId: String): String

Method to add or edit a project

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


             {
                 "name" : "name of the project", -> [String]
                 "project_description": "description of the project", -> [String]
                 "project_version": "current project project_version", -> [String]
                 "groups" : [ -> [List of Strings or empty]
                     // id of the group -> [String]
                 ],
                 "project_repository": "the GitHub or Gitlab project's project_repository" -> [String]
             }
     
projectId

The identifier of the project if exists