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=1360
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=1380",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1340",
    "results": [
        {
            "id": 3529,
            "ctype": "geo.room",
            "presentation": "MC1.G.EG.014: Flüssig-Stickstofftank 02 (Nord) (EG01)\n",
            "level_id": 2,
            "room_id": 3529
        },
        {
            "id": 3625,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.040: Flüssig-Stickstofftank 01 (Süd) (EG01)\n",
            "level_id": 2,
            "room_id": 3625
        },
        {
            "id": 3193,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.013: Waschraum, Ankleide, Prosektur (UG01)\n",
            "level_id": 8,
            "room_id": 3193
        },
        {
            "id": 3266,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.016: Technikraum  Chemical Shower (UG01)\n",
            "level_id": 8,
            "room_id": 3266
        },
        {
            "id": 3286,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.030: Technik für Server (UG01)\n",
            "level_id": 8,
            "room_id": 3286
        },
        {
            "id": 3294,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.033: Tierhaltung Radioaktiv (Radionuklid-Bereich) (UG01)\n",
            "level_id": 8,
            "room_id": 3294
        },
        {
            "id": 270,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.009: Büro Prof. Kratky (OG06)\n",
            "level_id": 1,
            "room_id": 270
        },
        {
            "id": 541,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.018: Labor 06-2 Mikroskopie (OG06)\n",
            "level_id": 1,
            "room_id": 541
        },
        {
            "id": 547,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.019: Büro Prof. Kostner (OG06)\n",
            "level_id": 1,
            "room_id": 547
        },
        {
            "id": 581,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.024: Labor 07-2 Mikroskopie (OG06)\n",
            "level_id": 1,
            "room_id": 581
        },
        {
            "id": 582,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.026: Labor 08-2 Mikroskopie (OG06)\n",
            "level_id": 1,
            "room_id": 582
        },
        {
            "id": 592,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.033: Büro Prof. Sattler (OG06)\n",
            "level_id": 1,
            "room_id": 592
        },
        {
            "id": 604,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.021: Vorstandsbüro Prof. Graier (OG06)\n",
            "level_id": 1,
            "room_id": 604
        },
        {
            "id": 618,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.032: Büro Prof. Malle (OG06)\n",
            "level_id": 1,
            "room_id": 618
        },
        {
            "id": 636,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.008: Büro Prof. Steyrer (OG06)\n",
            "level_id": 1,
            "room_id": 636
        },
        {
            "id": 639,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.011: Technische Assistenz (Werkstätte) (OG06)\n",
            "level_id": 1,
            "room_id": 639
        },
        {
            "id": 640,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.012: Büro Prof. Schmidt (OG06)\n",
            "level_id": 1,
            "room_id": 640
        },
        {
            "id": 667,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.018: Geräteraum ZMF II  (OG06)\n",
            "level_id": 1,
            "room_id": 667
        },
        {
            "id": 668,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.016: Chemikalienarbeitsplatz ZMF II (OG06)\n",
            "level_id": 1,
            "room_id": 668
        },
        {
            "id": 673,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.028: Büro Prof. Madl (OG06)\n",
            "level_id": 1,
            "room_id": 673
        }
    ]
}