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=1560
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=1580",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1540",
    "results": [
        {
            "id": 3567,
            "ctype": "geo.room",
            "presentation": "MC1.C.EG.005: Gitterrost/Technikraum: Schacht für TGA (EG01)\n",
            "level_id": 2,
            "room_id": 3567
        },
        {
            "id": 3585,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.027: Gitterrost/Technikraum: Schacht für TGA (EG01)\n",
            "level_id": 2,
            "room_id": 3585
        },
        {
            "id": 3614,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.027: Gitterrost/Technikraum: Schacht für TGA (EG01)\n",
            "level_id": 2,
            "room_id": 3614
        },
        {
            "id": 3635,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.010: Gitterrost/Technikraum: Schacht für TGA (EG01)\n",
            "level_id": 2,
            "room_id": 3635
        },
        {
            "id": 3656,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.008: Gitterrost/Technikraum: Schacht für TGA (EG01)\n",
            "level_id": 2,
            "room_id": 3656
        },
        {
            "id": 3835,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.015: WC B/D inkl. Dusche/Umkleide (OG05)\n",
            "level_id": 3,
            "room_id": 3835
        },
        {
            "id": 2680,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.026: 2. Schleuse für S3-Infektionsseziersaal (UG01)\n",
            "level_id": 8,
            "room_id": 2680
        },
        {
            "id": 3131,
            "ctype": "geo.room",
            "presentation": "MC1.C.02.002: Gang Trakt 04 / Studierbereich (OG02)\n",
            "level_id": 6,
            "room_id": 3131
        },
        {
            "id": 3145,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.038: Zellbiologie  Zellkultur Koje 4  (OG02)\n",
            "level_id": 6,
            "room_id": 3145
        },
        {
            "id": 3146,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.037: Zellbiologie  Zellkultur Koje 3 (OG02)\n",
            "level_id": 6,
            "room_id": 3146
        },
        {
            "id": 3147,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.036: Zellbiologie Zellkultur Koje 2 (OG02)\n",
            "level_id": 6,
            "room_id": 3147
        },
        {
            "id": 3148,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.035: Zellbiologie Zellkultur Koje 1 (OG02)\n",
            "level_id": 6,
            "room_id": 3148
        },
        {
            "id": 3152,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.007: Stiege Histologie (Trakt 05) (OG02)\n",
            "level_id": 6,
            "room_id": 3152
        },
        {
            "id": 2581,
            "ctype": "geo.room",
            "presentation": "MC1.G.U1.023: Lager/ Archiv ZMF II (UG01)\n",
            "level_id": 8,
            "room_id": 2581
        },
        {
            "id": 3176,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.024: Büro Abfallbeauftragte / Reinigung (UG01)\n",
            "level_id": 8,
            "room_id": 3176
        },
        {
            "id": 2947,
            "ctype": "geo.room",
            "presentation": "MC1.C.03.015: Leitung - Büro (CSC) (OG03)\n",
            "level_id": 5,
            "room_id": 2947
        },
        {
            "id": 3332,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.016: Paraffin Einbett-  und Ausgießraum (OG02)\n",
            "level_id": 6,
            "room_id": 3332
        },
        {
            "id": 3648,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.013: Wissenschaftliche Werkstätten inkl. Lagerbereich (EG01)\n",
            "level_id": 2,
            "room_id": 3648
        },
        {
            "id": 2731,
            "ctype": "geo.room",
            "presentation": "MC1.B.04.020: Bakteriologie Probenansatz  Labor 1 (OG04)\n",
            "level_id": 4,
            "room_id": 2731
        },
        {
            "id": 2578,
            "ctype": "geo.room",
            "presentation": "MC1.G.U1.026: Lager: Leitern, Absperrgitter, Kleingerüste (UG01)\n",
            "level_id": 8,
            "room_id": 2578
        }
    ]
}