•  
      story #9890 create project with REST API
    Summary
    Empty
    create project with REST API

    I can automated integration, see request #9747

    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
    Empty
    Empty
    Status
    Empty
    Done
    Development
    • [ ] Does it involves User Interface? 
    • [ ] Are there any mockups?
    • [ ] Are permissions checked?
    • [ ] Does it need Javascript development?
    • [ ] Does it need a forge upgrade bucket?
    • [ ] Does it need to execute things in system events?
    • [ ] Does it impact project creation (templates)?
    • [ ] Is it exploratory?
    Empty
    Details
    #9890
    Manuel Vacelet (vaceletm)
    2018-07-17 11:34
    2017-01-24 14:55
    4559

    References
    Referencing story #9890
    Referenced by story #9890

    Follow-ups