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=16540
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=16560",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16520",
    "results": [
        {
            "id": 98861,
            "ctype": "campusonline.student",
            "presentation": "Carolina Radetzky\n"
        },
        {
            "id": 98870,
            "ctype": "campusonline.student",
            "presentation": "Marlene Albrecht\n"
        },
        {
            "id": 98872,
            "ctype": "campusonline.student",
            "presentation": "Klaus Altenberger\n"
        },
        {
            "id": 98876,
            "ctype": "campusonline.student",
            "presentation": "Uwe Riedle\n"
        },
        {
            "id": 98881,
            "ctype": "campusonline.student",
            "presentation": "George Abdel Nour\n"
        },
        {
            "id": 98882,
            "ctype": "campusonline.student",
            "presentation": "Katja Helga Adelmann\n"
        },
        {
            "id": 98883,
            "ctype": "campusonline.student",
            "presentation": "Stefan Aigner\n"
        },
        {
            "id": 98884,
            "ctype": "campusonline.student",
            "presentation": "Florian Albrecht\n"
        },
        {
            "id": 98885,
            "ctype": "campusonline.student",
            "presentation": "Heba Alloch\n"
        },
        {
            "id": 98886,
            "ctype": "campusonline.student",
            "presentation": "Hannah Amin\n"
        },
        {
            "id": 98887,
            "ctype": "campusonline.student",
            "presentation": "Veronika Atzelstorfer\n"
        },
        {
            "id": 98888,
            "ctype": "campusonline.student",
            "presentation": "Marian Awad\n"
        },
        {
            "id": 98889,
            "ctype": "campusonline.student",
            "presentation": "Mohammad Reza Azizi\n"
        },
        {
            "id": 98890,
            "ctype": "campusonline.student",
            "presentation": "Baran Badiyi Tabar\n"
        },
        {
            "id": 98891,
            "ctype": "campusonline.student",
            "presentation": "Lukas Bauer\n"
        },
        {
            "id": 98892,
            "ctype": "campusonline.student",
            "presentation": "Anna Bauhofer\n"
        },
        {
            "id": 98893,
            "ctype": "campusonline.student",
            "presentation": "Alexander Baumgartner\n"
        },
        {
            "id": 98894,
            "ctype": "campusonline.student",
            "presentation": "Manuel Berger\n"
        },
        {
            "id": 98895,
            "ctype": "campusonline.student",
            "presentation": "Stephanie Berghammer\n"
        },
        {
            "id": 98896,
            "ctype": "campusonline.student",
            "presentation": "Ferdinand Bittner\n"
        }
    ]
}