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=17940
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=17960",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17920",
    "results": [
        {
            "id": 103798,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Bleissner\n"
        },
        {
            "id": 103800,
            "ctype": "campusonline.student",
            "presentation": "Paul Klopf\n"
        },
        {
            "id": 103803,
            "ctype": "campusonline.student",
            "presentation": "Chiara Ursula Burjak\n"
        },
        {
            "id": 103806,
            "ctype": "campusonline.student",
            "presentation": "Michael Jakob Gaggl\n"
        },
        {
            "id": 103808,
            "ctype": "campusonline.student",
            "presentation": "Tobias Alexander Weiß\n"
        },
        {
            "id": 103810,
            "ctype": "campusonline.student",
            "presentation": "Anna Kristin Stainer\n"
        },
        {
            "id": 103812,
            "ctype": "campusonline.student",
            "presentation": "Alexander Andreas Lorz\n"
        },
        {
            "id": 103814,
            "ctype": "campusonline.student",
            "presentation": "Marie-Kristin Eichberger\n"
        },
        {
            "id": 103816,
            "ctype": "campusonline.student",
            "presentation": "Marlies Posch\n"
        },
        {
            "id": 103820,
            "ctype": "campusonline.student",
            "presentation": "Johanna Raffelt\n"
        },
        {
            "id": 103822,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Oppitz\n"
        },
        {
            "id": 103826,
            "ctype": "campusonline.student",
            "presentation": "Bernd Mauser\n"
        },
        {
            "id": 103828,
            "ctype": "campusonline.student",
            "presentation": "Ron Mozhiparambil\n"
        },
        {
            "id": 103832,
            "ctype": "campusonline.student",
            "presentation": "Sophia Kurka\n"
        },
        {
            "id": 103834,
            "ctype": "campusonline.student",
            "presentation": "Klemens Heinz\n"
        },
        {
            "id": 103838,
            "ctype": "campusonline.student",
            "presentation": "Blanka Vaszi\n"
        },
        {
            "id": 103842,
            "ctype": "campusonline.student",
            "presentation": "Patricia Stefanie Marie Krull\n"
        },
        {
            "id": 103844,
            "ctype": "campusonline.student",
            "presentation": "Daniel Schwarz\n"
        },
        {
            "id": 103846,
            "ctype": "campusonline.student",
            "presentation": "Louise Marieke Itzlinger\n"
        },
        {
            "id": 103849,
            "ctype": "campusonline.student",
            "presentation": "Carina Maria Laglstorfer\n"
        }
    ]
}