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=1000
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=1020",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=980",
    "results": [
        {
            "id": 3348,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.032: Kühlschrankraum (-80°C-Freezer) (OG02)\n",
            "level_id": 6,
            "room_id": 3348
        },
        {
            "id": 2605,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.015: Flüssigstickstofflager/ Befüllstation (UG01)\n",
            "level_id": 8,
            "room_id": 2605
        },
        {
            "id": 3268,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.008: Leichenannahme/-abholung, Totenbeschau (UG01)\n",
            "level_id": 8,
            "room_id": 3268
        },
        {
            "id": 3279,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.042: Diesel-Tankraum Notstrom-Aggregat (UG01)\n",
            "level_id": 8,
            "room_id": 3279
        },
        {
            "id": 3285,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.031: Technik  EDV-Server (UG01)\n",
            "level_id": 8,
            "room_id": 3285
        },
        {
            "id": 3288,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.028: Technik  EDV-Server (UG01)\n",
            "level_id": 8,
            "room_id": 3288
        },
        {
            "id": 3293,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.032: Radionuklid-OP (Radionuklid-Bereich) (UG01)\n",
            "level_id": 8,
            "room_id": 3293
        },
        {
            "id": 3318,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.012: LÜ-Zentrale BRV-Anlage (UG01)\n",
            "level_id": 8,
            "room_id": 3318
        },
        {
            "id": 3796,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.008: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3796
        },
        {
            "id": 3839,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.036: Personenaufenthaltsraum / Sozialraum (OG05)\n",
            "level_id": 3,
            "room_id": 3839
        },
        {
            "id": 3840,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.035: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3840
        },
        {
            "id": 3841,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.034: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3841
        },
        {
            "id": 3842,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.033: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3842
        },
        {
            "id": 3843,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.032: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3843
        },
        {
            "id": 3844,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.031: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3844
        },
        {
            "id": 3845,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.030: Lehrstuhlinhaber - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3845
        },
        {
            "id": 3846,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.029: Sekretariat - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3846
        },
        {
            "id": 3847,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.028: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3847
        },
        {
            "id": 3848,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.027: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3848
        },
        {
            "id": 3849,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.026: Mitarbeiter - Büro (OG05)\n",
            "level_id": 3,
            "room_id": 3849
        }
    ]
}