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=1080
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=1100",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1060",
    "results": [
        {
            "id": 2905,
            "ctype": "geo.room",
            "presentation": "MC1.E.04.003: Gang Trakt 02 (OG04)\n",
            "level_id": 4,
            "room_id": 2905
        },
        {
            "id": 2927,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.007: Brücke 4 offen (OG03)\n",
            "level_id": 5,
            "room_id": 2927
        },
        {
            "id": 2930,
            "ctype": "geo.room",
            "presentation": "MC1.C.03.005: Gang Trakt 04 (OG03)\n",
            "level_id": 5,
            "room_id": 2930
        },
        {
            "id": 2932,
            "ctype": "geo.room",
            "presentation": "MC1.C.03.004: Gang Trakt 04 (OG03)\n",
            "level_id": 5,
            "room_id": 2932
        },
        {
            "id": 2934,
            "ctype": "geo.room",
            "presentation": "MC1.C.03.003: Gang Trakt 04 (OG03)\n",
            "level_id": 5,
            "room_id": 2934
        },
        {
            "id": 2977,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.008: Brücke 7 offen (OG03)\n",
            "level_id": 5,
            "room_id": 2977
        },
        {
            "id": 3057,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.008: Brücke 2 offen (OG03)\n",
            "level_id": 5,
            "room_id": 3057
        },
        {
            "id": 3058,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.009: Brücke 1 geschlossen (OG03)\n",
            "level_id": 5,
            "room_id": 3058
        },
        {
            "id": 3059,
            "ctype": "geo.room",
            "presentation": "MC1.G.02.003: Gang Trakt 06 (OG02)\n",
            "level_id": 6,
            "room_id": 3059
        },
        {
            "id": 3070,
            "ctype": "geo.room",
            "presentation": "MC1.E.02.006: Gang Trakt 02 (OG02)\n",
            "level_id": 6,
            "room_id": 3070
        },
        {
            "id": 3075,
            "ctype": "geo.room",
            "presentation": "MC1.E.02.003: Gang Trakt 02 (OG02)\n",
            "level_id": 6,
            "room_id": 3075
        },
        {
            "id": 3082,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.005: Gang Trakt 01 (OG02)\n",
            "level_id": 6,
            "room_id": 3082
        },
        {
            "id": 3103,
            "ctype": "geo.room",
            "presentation": "MC1.A.02.001: Gang Trakt 04 (OG02)\n",
            "level_id": 6,
            "room_id": 3103
        },
        {
            "id": 3105,
            "ctype": "geo.room",
            "presentation": "MC1.A.02.003: Brücke 2 geschlossen (OG02)\n",
            "level_id": 6,
            "room_id": 3105
        },
        {
            "id": 3108,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.008: Gang Trakt 04 (OG02)\n",
            "level_id": 6,
            "room_id": 3108
        },
        {
            "id": 3109,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.009: Brücke 1 geschlossen (OG02)\n",
            "level_id": 6,
            "room_id": 3109
        },
        {
            "id": 3125,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.003: Gang Trakt 05 (OG02)\n",
            "level_id": 6,
            "room_id": 3125
        },
        {
            "id": 3160,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.009: Gang Trakt 03 (OG02)\n",
            "level_id": 6,
            "room_id": 3160
        },
        {
            "id": 3498,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.006: Brücke 1 offen (OG01)\n",
            "level_id": 7,
            "room_id": 3498
        },
        {
            "id": 3499,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.005: Brücke 2 geschlossen (OG01)\n",
            "level_id": 7,
            "room_id": 3499
        }
    ]
}