Get autocomplete suggestions for geographic objects:

.../?q=<Word>

To limit results to certain models use the m parameter:

.../?q=<Word>&m=<Model>,<Model>,...

Possible models are currently:

  • campusonline.Person
  • campusonline.Room
  • campusonline.Student
  • geo.Room
  • structure.Organization
  • structure.Person

The ctype property determines the content type of each suggested item. This can be used to do further queries at other endpoints.

GET /v1/api/autocomplete/?format=api&offset=1580
HTTP 200 OK
  Allow: GET, HEAD, OPTIONS
  Content-Type: application/json
  Vary: Accept
  
  {
    "count": 18715,
    "next": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1600",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1560",
    "results": [
        {
            "id": 2579,
            "ctype": "geo.room",
            "presentation": "MC1.G.U1.025: Lager/Archiv: Lehrstuhl für Biochemie (UG01)\n",
            "level_id": 8,
            "room_id": 2579
        },
        {
            "id": 2612,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.036: Fasslager brennbare Flüssigkeiten (VEXAT) (UG01)\n",
            "level_id": 8,
            "room_id": 2612
        },
        {
            "id": 2613,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.035: Abfüllung  brennbare Flüssigkeiten (VEXAT) (UG01)\n",
            "level_id": 8,
            "room_id": 2613
        },
        {
            "id": 2681,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.025: Lager: Leitern, Absperrgitter, Kleingerüste (UG01)\n",
            "level_id": 8,
            "room_id": 2681
        },
        {
            "id": 3366,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.016: WC D (Teilnutzung AG Hill) (OG02)\n",
            "level_id": 6,
            "room_id": 3366
        },
        {
            "id": 3367,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.015: WC H (Teilnutzung AG Hill) (OG02)\n",
            "level_id": 6,
            "room_id": 3367
        },
        {
            "id": 3592,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.0007: Zentralgarderobe - Erweiterungsfläche f. Veranstal (EG01)\n",
            "level_id": 2,
            "room_id": 3592
        },
        {
            "id": 3027,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.017: Elisa, Behring, FSME, Borrelien (OG03)\n",
            "level_id": 5,
            "room_id": 3027
        },
        {
            "id": 3028,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.016: Elisa, Behring, FSME, Borrelien (OG03)\n",
            "level_id": 5,
            "room_id": 3028
        },
        {
            "id": 3531,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.008: Lager Ver- und Entsorgung (EG01)\n",
            "level_id": 2,
            "room_id": 3531
        },
        {
            "id": 3563,
            "ctype": "geo.room",
            "presentation": "MC1.C.EG.008: Leitung Technische Betriebsführung (TBF) (EG01)\n",
            "level_id": 2,
            "room_id": 3563
        },
        {
            "id": 3159,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.008: Stiege Phys. Chemie (Trakt 03) (OG02)\n",
            "level_id": 6,
            "room_id": 3159
        },
        {
            "id": 3083,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.003: Gang Trakt 01 (S3-Infektionsforschungsbereich) (OG02)\n",
            "level_id": 6,
            "room_id": 3083
        },
        {
            "id": 3086,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.004: Gang Trakt 01 (S3-Infektionsforschungsbereich) (OG02)\n",
            "level_id": 6,
            "room_id": 3086
        },
        {
            "id": 2584,
            "ctype": "geo.room",
            "presentation": "MC1.G.U1.017: Lager/Archiv: Lehrstuhl für Histologie (UG01)\n",
            "level_id": 8,
            "room_id": 2584
        },
        {
            "id": 2611,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.037: Fasslager und Abfüllung Säuren/Laugen (UG01)\n",
            "level_id": 8,
            "room_id": 2611
        },
        {
            "id": 2797,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.016: Lager für Putzgerät und Putzmittel (OG04)\n",
            "level_id": 4,
            "room_id": 2797
        },
        {
            "id": 3684,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.016: Molekularpatho. Diagnostik (PCR Ansatz viral) (OG05)\n",
            "level_id": 3,
            "room_id": 3684
        },
        {
            "id": 3528,
            "ctype": "geo.room",
            "presentation": "MC1.G.EG.011: Lager/ Archiv (z.B. Rasentraktor) (EG01)\n",
            "level_id": 2,
            "room_id": 3528
        },
        {
            "id": 565,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.030: Sekretariat Ludwig Boltzmann Institut (LBI) (OG06)\n",
            "level_id": 1,
            "room_id": 565
        }
    ]
}