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=560
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=580",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=540",
    "results": [
        {
            "id": 594,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.022: Labor (OG06)\n",
            "level_id": 1,
            "room_id": 594
        },
        {
            "id": 595,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.019: Labor (OG06)\n",
            "level_id": 1,
            "room_id": 595
        },
        {
            "id": 597,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.015: Labor (OG06)\n",
            "level_id": 1,
            "room_id": 597
        },
        {
            "id": 600,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.012: Labor (OG06)\n",
            "level_id": 1,
            "room_id": 600
        },
        {
            "id": 613,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.016: Zellkultur (OG06)\n",
            "level_id": 1,
            "room_id": 613
        },
        {
            "id": 614,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.014: Lager (OG06)\n",
            "level_id": 1,
            "room_id": 614
        },
        {
            "id": 619,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.031: Zentrifugenraum (OG06)\n",
            "level_id": 1,
            "room_id": 619
        },
        {
            "id": 633,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.008: Genomsequenzierung (OG06)\n",
            "level_id": 1,
            "room_id": 633
        },
        {
            "id": 634,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.009: Spülküche (OG06)\n",
            "level_id": 1,
            "room_id": 634
        },
        {
            "id": 637,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.009: Labor (OG06)\n",
            "level_id": 1,
            "room_id": 637
        },
        {
            "id": 649,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.024: Dunkelraum (OG06)\n",
            "level_id": 1,
            "room_id": 649
        },
        {
            "id": 652,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.005: Gang (OG06)\n",
            "level_id": 1,
            "room_id": 652
        },
        {
            "id": 660,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.004: Gang (OG06)\n",
            "level_id": 1,
            "room_id": 660
        },
        {
            "id": 664,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.020: Lager  (OG06)\n",
            "level_id": 1,
            "room_id": 664
        },
        {
            "id": 674,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.029: Labor (OG06)\n",
            "level_id": 1,
            "room_id": 674
        },
        {
            "id": 678,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.033: Entsorgung (OG06)\n",
            "level_id": 1,
            "room_id": 678
        },
        {
            "id": 2770,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.031: Immunhisto-Labor (OG04)\n",
            "level_id": 4,
            "room_id": 2770
        },
        {
            "id": 2807,
            "ctype": "geo.room",
            "presentation": "MC1.C.04.011: PhD-Studenten (OG04)\n",
            "level_id": 4,
            "room_id": 2807
        },
        {
            "id": 3458,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.008: Reinigung-Sterilisation (OG01)\n",
            "level_id": 7,
            "room_id": 3458
        },
        {
            "id": 3459,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.009: Reinigung-Sterilisation (OG01)\n",
            "level_id": 7,
            "room_id": 3459
        }
    ]
}