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=380
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=400",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=360",
    "results": [
        {
            "id": 3199,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.003: Logistiktunnel (UG01)\n",
            "level_id": 8,
            "room_id": 3199
        },
        {
            "id": 3202,
            "ctype": "geo.room",
            "presentation": "- (UG01)\n",
            "level_id": 8,
            "room_id": 3202
        },
        {
            "id": 3228,
            "ctype": "geo.room",
            "presentation": "- (UG01)\n",
            "level_id": 8,
            "room_id": 3228
        },
        {
            "id": 3270,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.045: Pumpenraum (UG01)\n",
            "level_id": 8,
            "room_id": 3270
        },
        {
            "id": 3273,
            "ctype": "geo.room",
            "presentation": "- (UG01)\n",
            "level_id": 8,
            "room_id": 3273
        },
        {
            "id": 3278,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.038: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 3278
        },
        {
            "id": 3300,
            "ctype": "geo.room",
            "presentation": "- (UG01)\n",
            "level_id": 8,
            "room_id": 3300
        },
        {
            "id": 3302,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.030: Tierhaltung (UG01)\n",
            "level_id": 8,
            "room_id": 3302
        },
        {
            "id": 3303,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.031: Tierhaltung (UG01)\n",
            "level_id": 8,
            "room_id": 3303
        },
        {
            "id": 3304,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.028: Tierhaltung (UG01)\n",
            "level_id": 8,
            "room_id": 3304
        },
        {
            "id": 3305,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.027: Tierhaltung (UG01)\n",
            "level_id": 8,
            "room_id": 3305
        },
        {
            "id": 3307,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.004: Logistiktunnel (UG01)\n",
            "level_id": 8,
            "room_id": 3307
        },
        {
            "id": 3308,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.021: Kältezentrale (UG01)\n",
            "level_id": 8,
            "room_id": 3308
        },
        {
            "id": 3309,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.007: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 3309
        },
        {
            "id": 3312,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.024: Sprinklerzentrale (UG01)\n",
            "level_id": 8,
            "room_id": 3312
        },
        {
            "id": 3313,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.022: Neutralisationsanlage (UG01)\n",
            "level_id": 8,
            "room_id": 3313
        },
        {
            "id": 3325,
            "ctype": "geo.room",
            "presentation": "- (UG01)\n",
            "level_id": 8,
            "room_id": 3325
        },
        {
            "id": 3327,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.003: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 3327
        },
        {
            "id": 3334,
            "ctype": "geo.room",
            "presentation": "- (OG02)\n",
            "level_id": 6,
            "room_id": 3334
        },
        {
            "id": 3353,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.030: Lager (OG02)\n",
            "level_id": 6,
            "room_id": 3353
        }
    ]
}