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=460
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=480",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=440",
    "results": [
        {
            "id": 3508,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.008: Kopiernische (OG01)\n",
            "level_id": 7,
            "room_id": 3508
        },
        {
            "id": 3515,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3515
        },
        {
            "id": 3518,
            "ctype": "geo.room",
            "presentation": "MC1.G.EG.013: Technik (EG01)\n",
            "level_id": 2,
            "room_id": 3518
        },
        {
            "id": 3519,
            "ctype": "geo.room",
            "presentation": "MC1.G.EG.003: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3519
        },
        {
            "id": 3524,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3524
        },
        {
            "id": 3525,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3525
        },
        {
            "id": 3540,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.003: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3540
        },
        {
            "id": 3543,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.005: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3543
        },
        {
            "id": 3544,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3544
        },
        {
            "id": 3552,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3552
        },
        {
            "id": 3561,
            "ctype": "geo.room",
            "presentation": "MC1.C.EG.003: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3561
        },
        {
            "id": 3569,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3569
        },
        {
            "id": 3570,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3570
        },
        {
            "id": 3571,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3571
        },
        {
            "id": 3577,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.016: Zentralgarderobe (EG01)\n",
            "level_id": 2,
            "room_id": 3577
        },
        {
            "id": 3581,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.005: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3581
        },
        {
            "id": 3583,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3583
        },
        {
            "id": 3584,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.028: Lagerraum (EG01)\n",
            "level_id": 2,
            "room_id": 3584
        },
        {
            "id": 3586,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.026: Zentralgarderobe (EG01)\n",
            "level_id": 2,
            "room_id": 3586
        },
        {
            "id": 3587,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.025: Zentralgarderobe (EG01)\n",
            "level_id": 2,
            "room_id": 3587
        }
    ]
}