KopyTKG / laborky

UJEP.cz projektový seminář. Projekt na výpis termínů laboratorních cvičení pro ZPS,PCA,ZEL.
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Potřeba změny formatu pro /ucitel/termin (GET) #55

Closed KopyTKG closed 1 month ago

KopyTKG commented 1 month ago
[
  {
    "K21B0631P": {
      "jmeno": "Jitka",
      "prijmeni": "DVOŘÁKOVÁ",
      "email": "K21B0631P@students.zcu.cz"
    },
    "K21B0636P": {
      "jmeno": "Hana",
      "prijmeni": "BOKOTEJOVÁ",
      "email": "K21B0636P@students.zcu.cz"
    }
  },
  {
    "ucebna": "Group",
    "aktualni_kapacita": 2,
    "max_kapacita": 3,
    "vypsal_id": "dab963ab63e7e4f2a6f32c334bf839513928ff5d",
    "kod_predmet": "KEM/MAM",
    "popis": "Group test",
    "id": "1fd68837-f362-4258-a8ce-070ae12306dd",
    "datum_start": "2024-10-19T10:00:00",
    "datum_konec": "2024-10-19T12:00:00",
    "jmeno": "KEM/MAM",
    "vyucuje_id": "dab963ab63e7e4f2a6f32c334bf839513928ff5d",
    "cislo_cviceni": 1
  }
]

bohužel nejsem schopen zobrazit tento formát a to protože ty studenti nejsou v array a to je velký problém potřebuju formát jako je

{
 "studenti": [
  {
     "osCislo": "K21B0636P",
      "jmeno": "Hana",
      "prijmeni": "BOKOTEJOVÁ",
      "email": "K21B0636P@students.zcu.cz"
    }
 ],
 "termin": {
    "ucebna": "Group",
    "aktualni_kapacita": 2,
    "max_kapacita": 3,
    "vypsal_id": "dab963ab63e7e4f2a6f32c334bf839513928ff5d",
    "kod_predmet": "KEM/MAM",
    "popis": "Group test",
    "id": "1fd68837-f362-4258-a8ce-070ae12306dd",
    "datum_start": "2024-10-19T10:00:00",
    "datum_konec": "2024-10-19T12:00:00",
    "jmeno": "KEM/MAM",
    "vyucuje_id": "dab963ab63e7e4f2a6f32c334bf839513928ff5d",
    "cislo_cviceni": 1
 }
}
Bumross commented 1 month ago

Máš to tam

{
  "studenti": [
    {
      "osCislo": "A21B0110P",
      "jmeno": "Bohumil",
      "prijmeni": "KOVANDA",
      "email": "A21B0110P@students.zcu.cz"
    }
  ],
  "termin": {
    "id": "c5d0c8c6-3c0b-4cac-b053-5f6d301a2f43",
    "ucebna": "CPTO 1.1",
    "datum_start": "2024-10-11T14:00:00",
    "datum_konec": "2024-10-11T16:00:00",
    "jmeno": "Konzultace k BP pokračování",
    "vyucuje_id": "dab963ab63e7e4f2a6f32c334bf839513928ff5d",
    "cislo_cviceni": 2,
    "aktualni_kapacita": 1,
    "max_kapacita": 20,
    "vypsal_id": "dab963ab63e7e4f2a6f32c334bf839513928ff5d",
    "kod_predmet": "KIV/BOPX",
    "popis": "bude se konzultovat podruhé"
  }
}