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=18260
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=18280",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18240",
    "results": [
        {
            "id": 104347,
            "ctype": "campusonline.student",
            "presentation": "Kerstin Wittibschlager\n"
        },
        {
            "id": 104348,
            "ctype": "campusonline.student",
            "presentation": "Lisa Marie Waigl\n"
        },
        {
            "id": 104349,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Eichler\n"
        },
        {
            "id": 104350,
            "ctype": "campusonline.student",
            "presentation": "Julia Plank\n"
        },
        {
            "id": 104351,
            "ctype": "campusonline.student",
            "presentation": "Emir Raisov\n"
        },
        {
            "id": 104352,
            "ctype": "campusonline.student",
            "presentation": "Moritz Huber\n"
        },
        {
            "id": 104353,
            "ctype": "campusonline.student",
            "presentation": "Lisa Rodler\n"
        },
        {
            "id": 104354,
            "ctype": "campusonline.student",
            "presentation": "Marlene Höller\n"
        },
        {
            "id": 104355,
            "ctype": "campusonline.student",
            "presentation": "Nikolaus Wittmann\n"
        },
        {
            "id": 104356,
            "ctype": "campusonline.student",
            "presentation": "Carina Magdalena Mayrhofer-Huber\n"
        },
        {
            "id": 104357,
            "ctype": "campusonline.student",
            "presentation": "Julian Frießnegg\n"
        },
        {
            "id": 104358,
            "ctype": "campusonline.student",
            "presentation": "Fabian Harfmann\n"
        },
        {
            "id": 104359,
            "ctype": "campusonline.student",
            "presentation": "Leon Konstantin Schöne\n"
        },
        {
            "id": 104360,
            "ctype": "campusonline.student",
            "presentation": "Jakob Schimmels\n"
        },
        {
            "id": 104361,
            "ctype": "campusonline.student",
            "presentation": "Friederike van Lengen\n"
        },
        {
            "id": 104362,
            "ctype": "campusonline.student",
            "presentation": "Lothar Viktor Strebinger\n"
        },
        {
            "id": 104363,
            "ctype": "campusonline.student",
            "presentation": "Batlkhagva Batjargal\n"
        },
        {
            "id": 104366,
            "ctype": "campusonline.student",
            "presentation": "Manuela Hammer\n"
        },
        {
            "id": 104368,
            "ctype": "campusonline.student",
            "presentation": "Lisa Maria Schmidt\n"
        },
        {
            "id": 104370,
            "ctype": "campusonline.student",
            "presentation": "Gina Ruppert\n"
        }
    ]
}