add Project

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

Method to add a new 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]
             }