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=540
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=560",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=520",
    "results": [
        {
            "id": 6489,
            "ctype": "geo.room",
            "presentation": "- (OG02)\n",
            "level_id": 6,
            "room_id": 6489
        },
        {
            "id": 6576,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 6576
        },
        {
            "id": 6581,
            "ctype": "geo.room",
            "presentation": "MC1.G.04.009: Neuropathologie (OG04)\n",
            "level_id": 4,
            "room_id": 6581
        },
        {
            "id": 6582,
            "ctype": "geo.room",
            "presentation": "MC1.E.04.008: Spektroskopie (OG04)\n",
            "level_id": 4,
            "room_id": 6582
        },
        {
            "id": 6583,
            "ctype": "geo.room",
            "presentation": "MC1.E.04.011: Zellkultur (OG04)\n",
            "level_id": 4,
            "room_id": 6583
        },
        {
            "id": 6584,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.016: Werkstätte (OG04)\n",
            "level_id": 4,
            "room_id": 6584
        },
        {
            "id": 6585,
            "ctype": "geo.room",
            "presentation": "MC1.G.04.005: Kommunikationsknoten (OG04)\n",
            "level_id": 4,
            "room_id": 6585
        },
        {
            "id": 2632,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.003: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 2632
        },
        {
            "id": 2636,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.010: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 2636
        },
        {
            "id": 2649,
            "ctype": "geo.room",
            "presentation": "MC1.D.U1.026: VE-Wasserzentrale (UG01)\n",
            "level_id": 8,
            "room_id": 2649
        },
        {
            "id": 2652,
            "ctype": "geo.room",
            "presentation": "MC1.D.U1.026: VE-Wasserzentrale (UG01)\n",
            "level_id": 8,
            "room_id": 2652
        },
        {
            "id": 2669,
            "ctype": "geo.room",
            "presentation": "MC1.E.U1.006: MSR-Technikraum (UG01)\n",
            "level_id": 8,
            "room_id": 2669
        },
        {
            "id": 2670,
            "ctype": "geo.room",
            "presentation": "MC1.E.U1.005: BRA-Zentrale (UG01)\n",
            "level_id": 8,
            "room_id": 2670
        },
        {
            "id": 3187,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.015: Kühlraum (UG01)\n",
            "level_id": 8,
            "room_id": 3187
        },
        {
            "id": 3196,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.007: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 3196
        },
        {
            "id": 3287,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.029: Operatingroom (UG01)\n",
            "level_id": 8,
            "room_id": 3287
        },
        {
            "id": 3296,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.034: Tier-OP (UG01)\n",
            "level_id": 8,
            "room_id": 3296
        },
        {
            "id": 545,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.023: Besprechungsraum (OG06)\n",
            "level_id": 1,
            "room_id": 545
        },
        {
            "id": 546,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.022: Sekretariat (OG06)\n",
            "level_id": 1,
            "room_id": 546
        },
        {
            "id": 563,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.028: Besprechungsraum (OG06)\n",
            "level_id": 1,
            "room_id": 563
        }
    ]
}