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=600
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=620",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=580",
    "results": [
        {
            "id": 589,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.011: Putzraum (OG06)\n",
            "level_id": 1,
            "room_id": 589
        },
        {
            "id": 598,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.014: Mikrotomie/Extraktionsraum (OG06)\n",
            "level_id": 1,
            "room_id": 598
        },
        {
            "id": 599,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.013: Prä-PCR (OG06)\n",
            "level_id": 1,
            "room_id": 599
        },
        {
            "id": 607,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.022: Zentrifugen-Raum (OG06)\n",
            "level_id": 1,
            "room_id": 607
        },
        {
            "id": 609,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.021: Mikroskop/LSM (OG06)\n",
            "level_id": 1,
            "room_id": 609
        },
        {
            "id": 612,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.017: Zellkultur-Vorbereitung (OG06)\n",
            "level_id": 1,
            "room_id": 612
        },
        {
            "id": 641,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.013: Standard-Labor (OG06)\n",
            "level_id": 1,
            "room_id": 641
        },
        {
            "id": 643,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.015: Zell-Labor (OG06)\n",
            "level_id": 1,
            "room_id": 643
        },
        {
            "id": 655,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.024: Putzraum (OG06)\n",
            "level_id": 1,
            "room_id": 655
        },
        {
            "id": 658,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.010: Agarose-Gelelektrophorese (OG06)\n",
            "level_id": 1,
            "room_id": 658
        },
        {
            "id": 662,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.026: Büro-Leiter (OG06)\n",
            "level_id": 1,
            "room_id": 662
        },
        {
            "id": 683,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.041: Putzraum (OG06)\n",
            "level_id": 1,
            "room_id": 683
        },
        {
            "id": 2563,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.009: Kommunikationsknoten (OG03)\n",
            "level_id": 5,
            "room_id": 2563
        },
        {
            "id": 2564,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.008: Kommunikationsknoten (OG03)\n",
            "level_id": 5,
            "room_id": 2564
        },
        {
            "id": 2709,
            "ctype": "geo.room",
            "presentation": "MC1.B.04.043: Putzraum (OG04)\n",
            "level_id": 4,
            "room_id": 2709
        },
        {
            "id": 2750,
            "ctype": "geo.room",
            "presentation": "MC1.G.03.005: Kommunikationsknoten (OG03)\n",
            "level_id": 5,
            "room_id": 2750
        },
        {
            "id": 2753,
            "ctype": "geo.room",
            "presentation": "MC1.G.03.006: Putzraum (OG03)\n",
            "level_id": 5,
            "room_id": 2753
        },
        {
            "id": 2760,
            "ctype": "geo.room",
            "presentation": "MC1.G.03.012: Bildbearbeitung (OG03)\n",
            "level_id": 5,
            "room_id": 2760
        },
        {
            "id": 2761,
            "ctype": "geo.room",
            "presentation": "MC1.G.03.011: PALM (OG03)\n",
            "level_id": 5,
            "room_id": 2761
        },
        {
            "id": 2762,
            "ctype": "geo.room",
            "presentation": "MC1.G.03.013: Axiophot (OG03)\n",
            "level_id": 5,
            "room_id": 2762
        }
    ]
}