labwithcommunity / Lab-With-Comunity_Official-Api

MIT License
1 stars 0 forks source link

Zakładanie nowego projektu #37

Open michupl22 opened 2 weeks ago

michupl22 commented 2 weeks ago

Zalogowani użytkownicy mogą zakładać nowe projekty.

Wymagania

Podstawowe

Uzupełnianie danych

Żądanie

Endpoint: /api/project/add Method: POST

{
    "name" : "Nazwa projektu",
    "description" : "Opis projektu",
    "creatorid" : 3,
    "methodologyid" : null,
    "website" : "https://www.example.com",
    "wiki" : "https://www.example.com/wiki",
    "tracking" : "https://www.tracking.example.com",
    "license" : 1,
    "participants" : 
    [
        {
            "userid" : 3,
            "owner": 1,
            "approved" : 1
        },
        {
            "userid" : 6,
            "owner": 1,
            "approved" : 1
        },
        {
            "userid" : 6,
            "owner": 0,
            "approved" : 1
        }
    ],
    "tags" : [ "tag-1", "tag-2", "tag-3" ],
    "usedtechnologies" : [ 5, 23, 51, 56 ],
    "repositories" : [
        {
            "service" : 3
            "name" : "Podstawowe repozytorium",
            "description" : "Przykładowy opis",
            "address" : "https://github.com/labwithcommunity/Lab-With-Comunity_Official-Api",
            "ownerid" : 3,
            "public": 1
        },
        {
            "service" : 3,
            "name" : "Alternatywne repozytorium.",
            "description" : "Przykładowy opis",
            "address" : "https://github.com/labwithcommunity/Lab-With-Comunity_Official-Api",
            "ownerid" : 3,
            "public": 1
        }
    ],
    "workflows" : [
        {
            "serviceid" : 1,
            "description" : "Nasz podstawowy system organizacyjny",
            "address" : "https://www.test.jira.com"
        },
        {
            "serviceid" : 2
            "description" : "Countinous Integration",
            "address" : "http://serv.example.com/jenkins"
        }
    ]
}