# Dokumetacja API | Api | Zadania endpointa | | ---------------------------------------------- | ---------------------------------------------------------- | | [/config](#config) | Załadowanie konfiguracji startowej do aplikacji PlanNaPlan | | [/getCoursesWithGroups](#getcourseswithgroups) | Zwrócenie wszytskich kursów razem z grupami | | [/getCourseGroups](#getcoursegroups) | Zwrócenie grup dla danego kursu | | [/getCourses](#getcourses) | Zwrócenie wszystkich kursów | ## config Source code: [link](../restservice/src/main/java/com/plannaplan/controllers/ConfigController.java) ``` 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](../restservice/src/main/java/com/plannaplan/controllers/getCoursesWithGroups.java) ``` GET /getCoursesWithGroups ``` #### Opis Zwraca wszystkie dostepne kursy wraz z lista grup dla poszczegolnych kursow. ## getCourseGroups Source code: [link](../restservice/src/main/java/com/plannaplan/controllers/GroupController.java) ``` GET /getCourseGroups ``` #### Opis Endpoint konfigurujacy caly system i importujacy dane do bazy. #### 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](../restservice/src/main/java/com/plannaplan/controllers/CoursesController.java) ``` GET /getCourses ``` #### Opis Zwraca wszystkie dostepne kursy.