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=400
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=420",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=380",
    "results": [
        {
            "id": 3355,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.026: Lager   (OG02)\n",
            "level_id": 6,
            "room_id": 3355
        },
        {
            "id": 3359,
            "ctype": "geo.room",
            "presentation": "- (OG02)\n",
            "level_id": 6,
            "room_id": 3359
        },
        {
            "id": 3360,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.038: Besprechungsraum (OG02)\n",
            "level_id": 6,
            "room_id": 3360
        },
        {
            "id": 3361,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.039: Bibliothek (OG02)\n",
            "level_id": 6,
            "room_id": 3361
        },
        {
            "id": 3368,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.021: MC1.D.02.021 (OG02)\n",
            "level_id": 6,
            "room_id": 3368
        },
        {
            "id": 3369,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.022: MC1.D.02.022 (OG02)\n",
            "level_id": 6,
            "room_id": 3369
        },
        {
            "id": 3370,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.023: MC1.D.02.023 (OG02)\n",
            "level_id": 6,
            "room_id": 3370
        },
        {
            "id": 3372,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.017: MC1.D.02.017 (OG02)\n",
            "level_id": 6,
            "room_id": 3372
        },
        {
            "id": 3373,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.018: MC1.D.02.018 (OG02)\n",
            "level_id": 6,
            "room_id": 3373
        },
        {
            "id": 3374,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.019: MC1.D.02.019 (OG02)\n",
            "level_id": 6,
            "room_id": 3374
        },
        {
            "id": 3375,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.020: MC1.D.02.020 (OG02)\n",
            "level_id": 6,
            "room_id": 3375
        },
        {
            "id": 3379,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.003: Gang (OG02)\n",
            "level_id": 6,
            "room_id": 3379
        },
        {
            "id": 3381,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.025: MC1.G.01.025 (OG01)\n",
            "level_id": 7,
            "room_id": 3381
        },
        {
            "id": 3383,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.021: MC1.G.01.021 (OG01)\n",
            "level_id": 7,
            "room_id": 3383
        },
        {
            "id": 3384,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.023: MC1.G.01.023 (OG01)\n",
            "level_id": 7,
            "room_id": 3384
        },
        {
            "id": 3385,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.022: MC1.G.01.022 (OG01)\n",
            "level_id": 7,
            "room_id": 3385
        },
        {
            "id": 3392,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.003: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3392
        },
        {
            "id": 3396,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3396
        },
        {
            "id": 3397,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3397
        },
        {
            "id": 3405,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.003: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3405
        }
    ]
}