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=1060
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=1080",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1040",
    "results": [
        {
            "id": 3299,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.018: Präparation, Zuschnitt (OG02)\n",
            "level_id": 6,
            "room_id": 3299
        },
        {
            "id": 3331,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.015: Allg. Histo (OG02)\n",
            "level_id": 6,
            "room_id": 3331
        },
        {
            "id": 3333,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.017: Allg. Histo (OG02)\n",
            "level_id": 6,
            "room_id": 3333
        },
        {
            "id": 3336,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.020: Support Waagenraum (OG02)\n",
            "level_id": 6,
            "room_id": 3336
        },
        {
            "id": 3338,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.022: Support Giftraum (OG02)\n",
            "level_id": 6,
            "room_id": 3338
        },
        {
            "id": 3541,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.004: Schleuse  Werkstatt (EG01)\n",
            "level_id": 2,
            "room_id": 3541
        },
        {
            "id": 3548,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.016: Gang Werkstatt (EG01)\n",
            "level_id": 2,
            "room_id": 3548
        },
        {
            "id": 3556,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.015: Schleuse Werkstatt (EG01)\n",
            "level_id": 2,
            "room_id": 3556
        },
        {
            "id": 555,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.007: Brücke 7 offen (OG06)\n",
            "level_id": 1,
            "room_id": 555
        },
        {
            "id": 699,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.006: Brücke 3 geschlossen (OG06)\n",
            "level_id": 1,
            "room_id": 699
        },
        {
            "id": 2562,
            "ctype": "geo.room",
            "presentation": "MC1.E.04.005: Brücke 6 offen (OG04)\n",
            "level_id": 4,
            "room_id": 2562
        },
        {
            "id": 2722,
            "ctype": "geo.room",
            "presentation": "MC1.B.04.008: Brücke 1 offen (OG04)\n",
            "level_id": 4,
            "room_id": 2722
        },
        {
            "id": 2723,
            "ctype": "geo.room",
            "presentation": "MC1.B.04.007: Brücke 2 offen (OG04)\n",
            "level_id": 4,
            "room_id": 2723
        },
        {
            "id": 2822,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.008: Gang Trakt 03 (OG04)\n",
            "level_id": 4,
            "room_id": 2822
        },
        {
            "id": 2836,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.005: Brücke 10 geschlossen (OG04)\n",
            "level_id": 4,
            "room_id": 2836
        },
        {
            "id": 2837,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.004: Brücke 11 offen (OG04)\n",
            "level_id": 4,
            "room_id": 2837
        },
        {
            "id": 2838,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.006: Brücke 9 offen (OG04)\n",
            "level_id": 4,
            "room_id": 2838
        },
        {
            "id": 2843,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.003: Gang Trakt 02 (OG04)\n",
            "level_id": 4,
            "room_id": 2843
        },
        {
            "id": 2881,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.007: Brücke 7 offen (OG04)\n",
            "level_id": 4,
            "room_id": 2881
        },
        {
            "id": 2886,
            "ctype": "geo.room",
            "presentation": "MC1.E.04.004: Gang Trakt 02 (OG04)\n",
            "level_id": 4,
            "room_id": 2886
        }
    ]
}