labwithcommunity / Lab-With-Comunity_Official-Api

MIT License
1 stars 0 forks source link

Przeglądanie projektów #31

Open michupl22 opened 2 weeks ago

michupl22 commented 2 weeks ago

Zwraca listę projektów w celu wyświetlania ich w przeglądarce. W tym wypadku nie są pobierane obiekty relacyjne.

Endpoint: /api/projects Metoda: GET Parametry: user, methodology, license, limit, page

Wymagania

1.0

1.1

Opcjonalne parametry

Przykład

Żądanie

https://www.labwithcommunity.org/api/projects?user=3&methodology=2&license=3&limit=10&page=1

Odpowiedź

[
  {
    "id": 1,
    "name": "Projekt 1",
    "description": "Opis projektu 1",
    "created": "2022-01-01 12:00:00",
    "creator": "username",
    "methodology": "Extreme Programming",
    "license": "MIT",
    "website": "https://example.com/project1",
    "wiki": "https://example.com/project1/wiki",
    "tracking": "https://example.com/project1/tracking",
    "tags": [ "tag-1", "tag-2", "tag-3" ]
  },
  {
    "id": 2,
    "name": "Projekt 2",
    "description": "Opis projektu 2",
    "created": "2022-01-02 12:00:00",
    "creator": "username",
    "methodology": "Scrum",
    "license": "MIT",
    "website": "https://example.com/project2",
    "wiki": "https://example.com/project2/wiki",
    "tracking": "https://example.com/project2/tracking"
    "tags": [ "tag-1", "tag-2", "tag-3" ]
  }
]
domKul commented 1 week ago

brakuje tylko

"tags": [ "tag-1", "tag-2", "tag-3" ]

ale reszta zrobiona