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=580
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=600",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=560",
    "results": [
        {
            "id": 3559,
            "ctype": "geo.room",
            "presentation": "MC1.C.EG.011: Fahrrad-Aufzug (EG01)\n",
            "level_id": 2,
            "room_id": 3559
        },
        {
            "id": 3607,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.025: Probenannahme (EG01)\n",
            "level_id": 2,
            "room_id": 3607
        },
        {
            "id": 3608,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.024: Probenannahme (EG01)\n",
            "level_id": 2,
            "room_id": 3608
        },
        {
            "id": 3609,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.022: Probenannahme (EG01)\n",
            "level_id": 2,
            "room_id": 3609
        },
        {
            "id": 3619,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.007: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3619
        },
        {
            "id": 3622,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.034: Besprechungsraum (EG01)\n",
            "level_id": 2,
            "room_id": 3622
        },
        {
            "id": 3631,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.008: Kommunikationsknoten (EG01)\n",
            "level_id": 2,
            "room_id": 3631
        },
        {
            "id": 3632,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.003: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3632
        },
        {
            "id": 3642,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.014: Zellkultur (EG01)\n",
            "level_id": 2,
            "room_id": 3642
        },
        {
            "id": 3645,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.017: Labor (EG01)\n",
            "level_id": 2,
            "room_id": 3645
        },
        {
            "id": 3646,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.018: Einzellabor (EG01)\n",
            "level_id": 2,
            "room_id": 3646
        },
        {
            "id": 3655,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.005: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3655
        },
        {
            "id": 3668,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.021: PhD-Studenten (OG05)\n",
            "level_id": 3,
            "room_id": 3668
        },
        {
            "id": 3739,
            "ctype": "geo.room",
            "presentation": "MC1.C.05.008: PhD-Studenten (OG05)\n",
            "level_id": 3,
            "room_id": 3739
        },
        {
            "id": 3742,
            "ctype": "geo.room",
            "presentation": "MC1.C.05.011: PhD-Studenten (OG05)\n",
            "level_id": 3,
            "room_id": 3742
        },
        {
            "id": 3810,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.020: iDN-Baby-Labor (OG05)\n",
            "level_id": 3,
            "room_id": 3810
        },
        {
            "id": 3811,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.021: iDN-Baby-Labor (OG05)\n",
            "level_id": 3,
            "room_id": 3811
        },
        {
            "id": 6089,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.005: Lagerschrank (OG06)\n",
            "level_id": 1,
            "room_id": 6089
        },
        {
            "id": 6090,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.008: Kommunikationsknoten (OG06)\n",
            "level_id": 1,
            "room_id": 6090
        },
        {
            "id": 2640,
            "ctype": "geo.room",
            "presentation": "MC1.D.U1.030: Geräte-Lagerraum (UG01)\n",
            "level_id": 8,
            "room_id": 2640
        }
    ]
}