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=740
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=760",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=720",
    "results": [
        {
            "id": 3449,
            "ctype": "geo.room",
            "presentation": "MC1.D.01.001: Stiege D (OG01)\n",
            "level_id": 7,
            "room_id": 3449
        },
        {
            "id": 3471,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.001: Stiege E (OG01)\n",
            "level_id": 7,
            "room_id": 3471
        },
        {
            "id": 3477,
            "ctype": "geo.room",
            "presentation": "MC1.B.01.001: Stiege B (OG01)\n",
            "level_id": 7,
            "room_id": 3477
        },
        {
            "id": 3514,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.020: Lichthof Ost (OG01)\n",
            "level_id": 7,
            "room_id": 3514
        },
        {
            "id": 3671,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.001: Stiege G (OG05)\n",
            "level_id": 3,
            "room_id": 3671
        },
        {
            "id": 3699,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.033: Terrasse OG05 (OG05)\n",
            "level_id": 3,
            "room_id": 3699
        },
        {
            "id": 3709,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.001: Stiege F (OG05)\n",
            "level_id": 3,
            "room_id": 3709
        },
        {
            "id": 3736,
            "ctype": "geo.room",
            "presentation": "MC1.C.05.001: Stiege C (OG05)\n",
            "level_id": 3,
            "room_id": 3736
        },
        {
            "id": 3782,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.001: Stiege B (OG05)\n",
            "level_id": 3,
            "room_id": 3782
        },
        {
            "id": 3800,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.001: Stiege E (OG05)\n",
            "level_id": 3,
            "room_id": 3800
        },
        {
            "id": 3820,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.011: WC D (OG05)\n",
            "level_id": 3,
            "room_id": 3820
        },
        {
            "id": 3821,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.012: WC H (OG05)\n",
            "level_id": 3,
            "room_id": 3821
        },
        {
            "id": 3823,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.001: Stiege D (OG05)\n",
            "level_id": 3,
            "room_id": 3823
        },
        {
            "id": 3828,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.019: Wissenschaftliche Werkstoffbearbeitung (OG05)\n",
            "level_id": 3,
            "room_id": 3828
        },
        {
            "id": 5925,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.020: Werkstoffbearbeitung Planungsbüro (OG05)\n",
            "level_id": 3,
            "room_id": 5925
        },
        {
            "id": 6485,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.030: Lichthof OG01 (OG01)\n",
            "level_id": 7,
            "room_id": 6485
        },
        {
            "id": 650,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.023: Prä-PCR-II (OG06)\n",
            "level_id": 1,
            "room_id": 650
        },
        {
            "id": 2619,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.020: Trafobox 1 (UG01)\n",
            "level_id": 8,
            "room_id": 2619
        },
        {
            "id": 2621,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.021: Trafobox 2 (UG01)\n",
            "level_id": 8,
            "room_id": 2621
        },
        {
            "id": 2622,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.022: Trafobox 3 (UG01)\n",
            "level_id": 8,
            "room_id": 2622
        }
    ]
}