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=15780
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=15800",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15760",
    "results": [
        {
            "id": 95547,
            "ctype": "campusonline.student",
            "presentation": "Carolin Költgen\n"
        },
        {
            "id": 95550,
            "ctype": "campusonline.student",
            "presentation": "Fabian Schörgenhumer\n"
        },
        {
            "id": 95551,
            "ctype": "campusonline.student",
            "presentation": "Julia Gruber\n"
        },
        {
            "id": 95553,
            "ctype": "campusonline.student",
            "presentation": "Julia Theresa Schranzer\n"
        },
        {
            "id": 95556,
            "ctype": "campusonline.student",
            "presentation": "Lea Maria Ortner\n"
        },
        {
            "id": 95557,
            "ctype": "campusonline.student",
            "presentation": "Miriam Meister\n"
        },
        {
            "id": 95571,
            "ctype": "campusonline.student",
            "presentation": "Isabel Neumeier\n"
        },
        {
            "id": 95574,
            "ctype": "campusonline.student",
            "presentation": "Victoria Schneidhofer\n"
        },
        {
            "id": 95585,
            "ctype": "campusonline.student",
            "presentation": "Almut Pascher\n"
        },
        {
            "id": 95586,
            "ctype": "campusonline.student",
            "presentation": "Stephan Weingerl\n"
        },
        {
            "id": 95587,
            "ctype": "campusonline.student",
            "presentation": "Louisa Adele Julia Daller\n"
        },
        {
            "id": 95588,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Samuel Matthias Frühwirth\n"
        },
        {
            "id": 95590,
            "ctype": "campusonline.student",
            "presentation": "Felix Peter Stelzl\n"
        },
        {
            "id": 95595,
            "ctype": "campusonline.student",
            "presentation": "Christina Sarah Kumpitsch\n"
        },
        {
            "id": 95598,
            "ctype": "campusonline.student",
            "presentation": "Tobias Maximilian Hackl\n"
        },
        {
            "id": 95600,
            "ctype": "campusonline.student",
            "presentation": "Verena Rosinger\n"
        },
        {
            "id": 95605,
            "ctype": "campusonline.student",
            "presentation": "Jakob David Jöbstl\n"
        },
        {
            "id": 95611,
            "ctype": "campusonline.student",
            "presentation": "Philipp Michael Efferl\n"
        },
        {
            "id": 95619,
            "ctype": "campusonline.student",
            "presentation": "Hanna Yehdegho\n"
        },
        {
            "id": 95621,
            "ctype": "campusonline.student",
            "presentation": "Lisa Finster\n"
        }
    ]
}