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=720
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=740",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=700",
    "results": [
        {
            "id": 3001,
            "ctype": "geo.room",
            "presentation": "MC1.E.03.001: Stiege E (OG03)\n",
            "level_id": 5,
            "room_id": 3001
        },
        {
            "id": 3018,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.001: Stiege B (OG03)\n",
            "level_id": 5,
            "room_id": 3018
        },
        {
            "id": 3060,
            "ctype": "geo.room",
            "presentation": "MC1.G.02.001: Stiege G (OG02)\n",
            "level_id": 6,
            "room_id": 3060
        },
        {
            "id": 3076,
            "ctype": "geo.room",
            "presentation": "MC1.E.02.001: Stiege E (OG02)\n",
            "level_id": 6,
            "room_id": 3076
        },
        {
            "id": 3085,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.001: Stiege B (OG02)\n",
            "level_id": 6,
            "room_id": 3085
        },
        {
            "id": 3122,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.038: Office Technicians (OG02)\n",
            "level_id": 6,
            "room_id": 3122
        },
        {
            "id": 3123,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.001: Stiege D (OG02)\n",
            "level_id": 6,
            "room_id": 3123
        },
        {
            "id": 3141,
            "ctype": "geo.room",
            "presentation": "MC1.C.02.001: Stiege C (OG02)\n",
            "level_id": 6,
            "room_id": 3141
        },
        {
            "id": 3162,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.012: Meeting Point (OG02)\n",
            "level_id": 6,
            "room_id": 3162
        },
        {
            "id": 3164,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.045: AG Hill (OG02)\n",
            "level_id": 6,
            "room_id": 3164
        },
        {
            "id": 3166,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.001: Stiege F (OG02)\n",
            "level_id": 6,
            "room_id": 3166
        },
        {
            "id": 3394,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.001: Stiege G (OG01)\n",
            "level_id": 7,
            "room_id": 3394
        },
        {
            "id": 3395,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.006: WC B (OG01)\n",
            "level_id": 7,
            "room_id": 3395
        },
        {
            "id": 3404,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.001: Stiege F (OG01)\n",
            "level_id": 7,
            "room_id": 3404
        },
        {
            "id": 3412,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.007: WC B (OG01)\n",
            "level_id": 7,
            "room_id": 3412
        },
        {
            "id": 3421,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.012: WC D (OG01)\n",
            "level_id": 7,
            "room_id": 3421
        },
        {
            "id": 3422,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.011: WC H (OG01)\n",
            "level_id": 7,
            "room_id": 3422
        },
        {
            "id": 3423,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.013: WC H (OG01)\n",
            "level_id": 7,
            "room_id": 3423
        },
        {
            "id": 3424,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.014: WC D (OG01)\n",
            "level_id": 7,
            "room_id": 3424
        },
        {
            "id": 3431,
            "ctype": "geo.room",
            "presentation": "MC1.C.01.001: Stiege C (OG01)\n",
            "level_id": 7,
            "room_id": 3431
        }
    ]
}