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=1460
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=1480",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1440",
    "results": [
        {
            "id": 3598,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.029: Sessellager + mobile Hebebühne (EG01)\n",
            "level_id": 2,
            "room_id": 3598
        },
        {
            "id": 2593,
            "ctype": "geo.room",
            "presentation": "MC1.G.U1.013: Aufzug Stiege G (1) (UG01)\n",
            "level_id": 8,
            "room_id": 2593
        },
        {
            "id": 2594,
            "ctype": "geo.room",
            "presentation": "MC1.G.U1.014: Aufzug Stiege G (2) (UG01)\n",
            "level_id": 8,
            "room_id": 2594
        },
        {
            "id": 3035,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.029: Vidas, Axsym, Architekt (OG03)\n",
            "level_id": 5,
            "room_id": 3035
        },
        {
            "id": 3106,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.025: Büro Interaktive Mikrobiomforschung (OG02)\n",
            "level_id": 6,
            "room_id": 3106
        },
        {
            "id": 3274,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.036: Aufzug Stiege C (2) (UG01)\n",
            "level_id": 8,
            "room_id": 3274
        },
        {
            "id": 3275,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.037: Aufzug Stiege C (1) (UG01)\n",
            "level_id": 8,
            "room_id": 3275
        },
        {
            "id": 3323,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.009: Aufzug Stiege B (1) (UG01)\n",
            "level_id": 8,
            "room_id": 3323
        },
        {
            "id": 3324,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.010: Aufzug Stiege B (2) (UG01)\n",
            "level_id": 8,
            "room_id": 3324
        },
        {
            "id": 3539,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.012: Schreib- und CAD-Arbeitsplatz (EG01)\n",
            "level_id": 2,
            "room_id": 3539
        },
        {
            "id": 3649,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.008: CSC / Zentralgarderobe (EG01)\n",
            "level_id": 2,
            "room_id": 3649
        },
        {
            "id": 3432,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.009: Hörsaal MC 4 (HS) (OG01)\n",
            "level_id": 7,
            "room_id": 3432
        },
        {
            "id": 3433,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.010: Hörsaal MC 3 (HS) (OG01)\n",
            "level_id": 7,
            "room_id": 3433
        },
        {
            "id": 3442,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.013: Hörsaal MC 2 (HS) (OG01)\n",
            "level_id": 7,
            "room_id": 3442
        },
        {
            "id": 3474,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.007: Hörsaal MC 1 (HS) (OG01)\n",
            "level_id": 7,
            "room_id": 3474
        },
        {
            "id": 3572,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.012: Hörsaal MC 5 (HS) (EG01)\n",
            "level_id": 2,
            "room_id": 3572
        },
        {
            "id": 3573,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.009: Hörsaal MC 4 (HS) (EG01)\n",
            "level_id": 2,
            "room_id": 3573
        },
        {
            "id": 3574,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.003: Zugang Hörsaal MC 3 (EG01)\n",
            "level_id": 2,
            "room_id": 3574
        },
        {
            "id": 3575,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.010: Hörsaal MC 3 (HS) (EG01)\n",
            "level_id": 2,
            "room_id": 3575
        },
        {
            "id": 3597,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.013: Hörsaal MC 2 (HS) (EG01)\n",
            "level_id": 2,
            "room_id": 3597
        }
    ]
}