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=1380
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=1400",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1360",
    "results": [
        {
            "id": 689,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.050: Mikroskopierraum ZMF II (OG06)\n",
            "level_id": 1,
            "room_id": 689
        },
        {
            "id": 690,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.051: Mikroskopierraum ZMF II (OG06)\n",
            "level_id": 1,
            "room_id": 690
        },
        {
            "id": 691,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.049: Hypoxie ZMF II  (OG06)\n",
            "level_id": 1,
            "room_id": 691
        },
        {
            "id": 700,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.020: Büro Prof. Malli (OG06)\n",
            "level_id": 1,
            "room_id": 700
        },
        {
            "id": 2864,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.032: Personenaufenthaltsraum / Sozialraum (OG03)\n",
            "level_id": 5,
            "room_id": 2864
        },
        {
            "id": 3550,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.024: Chemikalientankraum Formalin (VEXAT) (EG01)\n",
            "level_id": 2,
            "room_id": 3550
        },
        {
            "id": 3558,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.017: Sandstrahlen - Sandstrahlkabine (EG01)\n",
            "level_id": 2,
            "room_id": 3558
        },
        {
            "id": 3681,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.012: Molekularpathologische Diagnostik PCR-Ansatz (OG05)\n",
            "level_id": 3,
            "room_id": 3681
        },
        {
            "id": 3682,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.011: Molekularpathologische Diagnostik PCR-Ansatz (OG05)\n",
            "level_id": 3,
            "room_id": 3682
        },
        {
            "id": 3690,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.032: Molekularpathologische Diagnostik PCR-Anlagen (OG05)\n",
            "level_id": 3,
            "room_id": 3690
        },
        {
            "id": 6578,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.035: Immunhisto Arbeitsraum IH-Fluoreszenz (OG04)\n",
            "level_id": 4,
            "room_id": 6578
        },
        {
            "id": 6579,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.036: Immunhisto Arbeitsraum IH-Fluoreszenz (OG04)\n",
            "level_id": 4,
            "room_id": 6579
        },
        {
            "id": 3101,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.020: S3-Infektionsforschungsbereich (N-Abfüllstation) (OG02)\n",
            "level_id": 6,
            "room_id": 3101
        },
        {
            "id": 2565,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.004: Gang Trakt 05 (OG03)\n",
            "level_id": 5,
            "room_id": 2565
        },
        {
            "id": 2566,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.003: Gang Trakt 05 (OG03)\n",
            "level_id": 5,
            "room_id": 2566
        },
        {
            "id": 2567,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.005: Gang Trakt 05 (OG03)\n",
            "level_id": 5,
            "room_id": 2567
        },
        {
            "id": 2749,
            "ctype": "geo.room",
            "presentation": "MC1.G.03.003: Gang Trakt 06 (OG03)\n",
            "level_id": 5,
            "room_id": 2749
        },
        {
            "id": 2850,
            "ctype": "geo.room",
            "presentation": "MC1.G.03.004: Brücke 8 geschlossen (OG03)\n",
            "level_id": 5,
            "room_id": 2850
        },
        {
            "id": 2928,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.006: Brücke 5 offen (OG03)\n",
            "level_id": 5,
            "room_id": 2928
        },
        {
            "id": 3124,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.006: Gang Trakt 05 (OG02)\n",
            "level_id": 6,
            "room_id": 3124
        }
    ]
}