POST /projects
We need to have there:
- project unix name
- project real name
- short desctiption
- visibility (public, private, public inc. restricted)
- the template we inherit from
So the payload should looks like
{
"shortname": string,
"label": string,
"description": string,
"visibility": string ('public', 'private', 'unrestricted'),
"template": int, (the project id to inherit from)
}
Returned payload
{
"status": {
"code": int,
"message": string
},
"uri": string
}
Example:
{
"shortname": "gpig",
"label": "Guinea Pig",
"description": "A test project",
"visibility": "public",
"template": 100,
}
Returns:
{
"status": {
"code": 1,
"message": "Project created, wait for administrator validation"
},
"uri": "/projects/230"
}
Special behaviours:
- If local.inc configuration sys_use_project_registration is disabled, the route returns 403
- After having POSTed, the availability of the project depends on site configuration (whether the site admin must validate or not the project).
Current limitations:
- Custom fields are not supported. If your platform have a mandatory field at project creation, it won't work
- Trove categories are not supported. If your platform have a mandatory trove cat at project creation, it won't work