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=1220
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=1240",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1200",
    "results": [
        {
            "id": 3564,
            "ctype": "geo.room",
            "presentation": "MC1.C.EG.007: Brandmeldezentrale (BMZ) (EG01)\n",
            "level_id": 2,
            "room_id": 3564
        },
        {
            "id": 2696,
            "ctype": "geo.room",
            "presentation": "MC1.G.04.003: Gang Trakt 06 (OG04)\n",
            "level_id": 4,
            "room_id": 2696
        },
        {
            "id": 2698,
            "ctype": "geo.room",
            "presentation": "MC1.G.04.004: Brücke 8 geschlossen (OG04)\n",
            "level_id": 4,
            "room_id": 2698
        },
        {
            "id": 2776,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.006: Brücke 5 geschlossen (OG04)\n",
            "level_id": 4,
            "room_id": 2776
        },
        {
            "id": 2778,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.003: Gang Trakt 05 (OG04)\n",
            "level_id": 4,
            "room_id": 2778
        },
        {
            "id": 2800,
            "ctype": "geo.room",
            "presentation": "MC1.C.04.004: Gang Trakt 04 (OG04)\n",
            "level_id": 4,
            "room_id": 2800
        },
        {
            "id": 2819,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.007: Brücke 4 offen (OG04)\n",
            "level_id": 4,
            "room_id": 2819
        },
        {
            "id": 2952,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.004: Gang Trakt 02 (OG03)\n",
            "level_id": 5,
            "room_id": 2952
        },
        {
            "id": 2966,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.003: Gang Trakt 02 (OG03)\n",
            "level_id": 5,
            "room_id": 2966
        },
        {
            "id": 2978,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.005: Brücke 11 offen (OG03)\n",
            "level_id": 5,
            "room_id": 2978
        },
        {
            "id": 2979,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.007: Brücke 9 offen (OG03)\n",
            "level_id": 5,
            "room_id": 2979
        },
        {
            "id": 2987,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.009: Gang Trakt 03 (OG03)\n",
            "level_id": 5,
            "room_id": 2987
        },
        {
            "id": 2996,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.007: Brücke 9 offen (OG03)\n",
            "level_id": 5,
            "room_id": 2996
        },
        {
            "id": 3157,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.007: Gang Trakt 03 (OG02)\n",
            "level_id": 6,
            "room_id": 3157
        },
        {
            "id": 3689,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.004: Brücke 8 geschlossen (OG05)\n",
            "level_id": 3,
            "room_id": 3689
        },
        {
            "id": 3698,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.006: Gang Trakt 05 (OG05)\n",
            "level_id": 3,
            "room_id": 3698
        },
        {
            "id": 3712,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.004: Gang Trakt 05 (OG05)\n",
            "level_id": 3,
            "room_id": 3712
        },
        {
            "id": 3716,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.005: Gang Trakt 05 (OG05)\n",
            "level_id": 3,
            "room_id": 3716
        },
        {
            "id": 3721,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.008: Brücke 4 offen (OG05)\n",
            "level_id": 3,
            "room_id": 3721
        },
        {
            "id": 3722,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.007: Brücke 5 geschlossen (OG05)\n",
            "level_id": 3,
            "room_id": 3722
        }
    ]
}