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=440
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=460",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=420",
    "results": [
        {
            "id": 3461,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.005: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3461
        },
        {
            "id": 3463,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.003: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3463
        },
        {
            "id": 3464,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.004: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3464
        },
        {
            "id": 3465,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.013: Labor (OG01)\n",
            "level_id": 7,
            "room_id": 3465
        },
        {
            "id": 3466,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.012: Nanodropraum (OG01)\n",
            "level_id": 7,
            "room_id": 3466
        },
        {
            "id": 3467,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.011: Labor (OG01)\n",
            "level_id": 7,
            "room_id": 3467
        },
        {
            "id": 3469,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.014: Sequenzieransatz (OG01)\n",
            "level_id": 7,
            "room_id": 3469
        },
        {
            "id": 3473,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3473
        },
        {
            "id": 3475,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.003: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3475
        },
        {
            "id": 3476,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.007: Kommunikationsknoten (OG01)\n",
            "level_id": 7,
            "room_id": 3476
        },
        {
            "id": 3479,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.020: Lager  (OG01)\n",
            "level_id": 7,
            "room_id": 3479
        },
        {
            "id": 3480,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3480
        },
        {
            "id": 3481,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.019: Müllraum (OG01)\n",
            "level_id": 7,
            "room_id": 3481
        },
        {
            "id": 3484,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3484
        },
        {
            "id": 3485,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3485
        },
        {
            "id": 3490,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.016: RNA (OG01)\n",
            "level_id": 7,
            "room_id": 3490
        },
        {
            "id": 3491,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.018: Probenannahme (OG01)\n",
            "level_id": 7,
            "room_id": 3491
        },
        {
            "id": 3492,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.017: Umkleide (OG01)\n",
            "level_id": 7,
            "room_id": 3492
        },
        {
            "id": 3495,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.023: Thermocycler (OG01)\n",
            "level_id": 7,
            "room_id": 3495
        },
        {
            "id": 3497,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.004: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3497
        }
    ]
}