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=1260
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=1280",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1240",
    "results": [
        {
            "id": 2666,
            "ctype": "geo.room",
            "presentation": "MC1.D.U1.020: Aufzug Stiege D (UG01)\n",
            "level_id": 8,
            "room_id": 2666
        },
        {
            "id": 2673,
            "ctype": "geo.room",
            "presentation": "MC1.E.U1.002: Schleuse Kern E (UG01)\n",
            "level_id": 8,
            "room_id": 2673
        },
        {
            "id": 2674,
            "ctype": "geo.room",
            "presentation": "MC1.E.U1.012: Aufzug Stiege E (UG01)\n",
            "level_id": 8,
            "room_id": 2674
        },
        {
            "id": 2920,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.023: Kühlgeräteraum (-80°C-Freezer) (OG03)\n",
            "level_id": 5,
            "room_id": 2920
        },
        {
            "id": 3012,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.023: Tiefkühlraum (-20°C) (OG03)\n",
            "level_id": 5,
            "room_id": 3012
        },
        {
            "id": 3026,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.015: Kühlraum (+4°C) (OG03)\n",
            "level_id": 5,
            "room_id": 3026
        },
        {
            "id": 3143,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.039: Kühlgeräteraum (-80°C-Freezer) (OG02)\n",
            "level_id": 6,
            "room_id": 3143
        },
        {
            "id": 3280,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.002: Schleuse Kern C (UG01)\n",
            "level_id": 8,
            "room_id": 3280
        },
        {
            "id": 3281,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.034: Technik Schaumlöschanlage Zentrallager (UG01)\n",
            "level_id": 8,
            "room_id": 3281
        },
        {
            "id": 3282,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.033: Technik Zentralbatterieraum (Notlichtversorgung) (UG01)\n",
            "level_id": 8,
            "room_id": 3282
        },
        {
            "id": 3317,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.014: Salzlager für Wasseraufbereitung (UG01)\n",
            "level_id": 8,
            "room_id": 3317
        },
        {
            "id": 3326,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.002: Schleuse Kern B (UG01)\n",
            "level_id": 8,
            "room_id": 3326
        },
        {
            "id": 3605,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.0010: Still- und Wickelraum (EG01)\n",
            "level_id": 2,
            "room_id": 3605
        },
        {
            "id": 2585,
            "ctype": "geo.room",
            "presentation": "MC1.G.U1.018: Lager CSC (UG01)\n",
            "level_id": 8,
            "room_id": 2585
        },
        {
            "id": 570,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.035: Personenaufenthaltsraum / Sozialraum (OG06)\n",
            "level_id": 1,
            "room_id": 570
        },
        {
            "id": 602,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.025: Personenaufenthaltsraum / Sozialraum (OG06)\n",
            "level_id": 1,
            "room_id": 602
        },
        {
            "id": 628,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.024: Personenaufenthaltsraum / Sozialraum (OG06)\n",
            "level_id": 1,
            "room_id": 628
        },
        {
            "id": 656,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.021: Photometerraum + PCR (OG06)\n",
            "level_id": 1,
            "room_id": 656
        },
        {
            "id": 679,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.034: Spülraum / Sterilisation (OG06)\n",
            "level_id": 1,
            "room_id": 679
        },
        {
            "id": 680,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.035: Spülraum / Sterilisation (OG06)\n",
            "level_id": 1,
            "room_id": 680
        }
    ]
}