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=780
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=800",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=760",
    "results": [
        {
            "id": 2919,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.022: Zellbiologie-Elisa (OG03)\n",
            "level_id": 5,
            "room_id": 2919
        },
        {
            "id": 3003,
            "ctype": "geo.room",
            "presentation": "MC1.E.03.007: Sequenzierung (OG03)\n",
            "level_id": 5,
            "room_id": 3003
        },
        {
            "id": 3004,
            "ctype": "geo.room",
            "presentation": "MC1.E.03.008: Sequenzierung (OG03)\n",
            "level_id": 5,
            "room_id": 3004
        },
        {
            "id": 3005,
            "ctype": "geo.room",
            "presentation": "MC1.E.03.009: Labor (OG03)\n",
            "level_id": 5,
            "room_id": 3005
        },
        {
            "id": 3014,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.020: Lager (OG03)\n",
            "level_id": 5,
            "room_id": 3014
        },
        {
            "id": 3030,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.026: Zellkultur (OG03)\n",
            "level_id": 5,
            "room_id": 3030
        },
        {
            "id": 3033,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.027: Flowzytometrie (OG03)\n",
            "level_id": 5,
            "room_id": 3033
        },
        {
            "id": 3034,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.028: Forschungslabor (OG03)\n",
            "level_id": 5,
            "room_id": 3034
        },
        {
            "id": 3036,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.030: Sekretariat (OG03)\n",
            "level_id": 5,
            "room_id": 3036
        },
        {
            "id": 3054,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.047: Buchhaltung (OG03)\n",
            "level_id": 5,
            "room_id": 3054
        },
        {
            "id": 3056,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.049: Sekretariat (OG03)\n",
            "level_id": 5,
            "room_id": 3056
        },
        {
            "id": 3081,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.024: Desinfektor (OG02)\n",
            "level_id": 6,
            "room_id": 3081
        },
        {
            "id": 3088,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.022: Lager  (OG02)\n",
            "level_id": 6,
            "room_id": 3088
        },
        {
            "id": 3090,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.021: Lager  (OG02)\n",
            "level_id": 6,
            "room_id": 3090
        },
        {
            "id": 3118,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.034: Büro (OG02)\n",
            "level_id": 6,
            "room_id": 3118
        },
        {
            "id": 3119,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.035: Besprechungsraum (OG02)\n",
            "level_id": 6,
            "room_id": 3119
        },
        {
            "id": 3295,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.035: Eingriffsraum 02 (UG01)\n",
            "level_id": 8,
            "room_id": 3295
        },
        {
            "id": 3301,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.029: Eingriffsraum 01 (UG01)\n",
            "level_id": 8,
            "room_id": 3301
        },
        {
            "id": 3310,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.026: Sprinklerbecken 01 (UG01)\n",
            "level_id": 8,
            "room_id": 3310
        },
        {
            "id": 3311,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.025: Sprinklerbecken 02 (UG01)\n",
            "level_id": 8,
            "room_id": 3311
        }
    ]
}