backend/docs/api.md
2020-08-29 11:59:59 +02:00

2.2 KiB

Dokumetacja API

Api Zadania endpointa
/config Załadowanie konfiguracji startowej do aplikacji PlanNaPlan
/getCoursesWithGroups Zwrócenie wszytskich kursów razem z grupami
/getCourseGroups Zwrócenie grup dla danego kursu
/getCourses Zwrócenie wszystkich kursów

config

Source code: link

POST /config

Opis

Endpoint konfigurujacy caly system i importujacy dane do bazy.

Parametry

Type Name Consumes Opis Type
Body file
required
multipart/form-data Plik .xlsx z potrzebnymi danymi file

getCoursesWithGroups

Source code: link

GET /getCoursesWithGroups

Opis

Zwraca wszystkie dostepne kursy wraz z listą grup.

getCourseGroups

Source code: link

GET /getCourseGroups

Opis

Zwraca wszytskie grupy dla danego kursu.

Parametry

Type Name Consumes Opis Type
Query Param id
required
- id kursu dla ktorego chcemy zwrocic grupy int
Query Param capacity
- czy ma zwrocic pole pojemnosci grupy bool

getCourses

Source code: link

GET /getCourses

Opis

Zwraca wszystkie dostepne kursy.