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=17100
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=17120",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17080",
    "results": [
        {
            "id": 100725,
            "ctype": "campusonline.student",
            "presentation": "Petra Eiler\n"
        },
        {
            "id": 100729,
            "ctype": "campusonline.student",
            "presentation": "Oliver Markus Hadl\n"
        },
        {
            "id": 100731,
            "ctype": "campusonline.student",
            "presentation": "Mathias Anzinger\n"
        },
        {
            "id": 100735,
            "ctype": "campusonline.student",
            "presentation": "Marlene Martinelli\n"
        },
        {
            "id": 100738,
            "ctype": "campusonline.student",
            "presentation": "Emily Mathilde Schweighofer\n"
        },
        {
            "id": 100740,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Regina Bürger\n"
        },
        {
            "id": 100742,
            "ctype": "campusonline.student",
            "presentation": "Ines Burkhart\n"
        },
        {
            "id": 100745,
            "ctype": "campusonline.student",
            "presentation": "Sabrina Katharina Masser\n"
        },
        {
            "id": 100747,
            "ctype": "campusonline.student",
            "presentation": "Tillmann Muhs\n"
        },
        {
            "id": 100753,
            "ctype": "campusonline.student",
            "presentation": "Katharina Mußnig\n"
        },
        {
            "id": 100755,
            "ctype": "campusonline.student",
            "presentation": "Hannah Pichler\n"
        },
        {
            "id": 100757,
            "ctype": "campusonline.student",
            "presentation": "Jakob Witsch\n"
        },
        {
            "id": 100764,
            "ctype": "campusonline.student",
            "presentation": "Khatia Meladze\n"
        },
        {
            "id": 100766,
            "ctype": "campusonline.student",
            "presentation": "Ahmed Souliman\n"
        },
        {
            "id": 100771,
            "ctype": "campusonline.student",
            "presentation": "Victoria Wallner\n"
        },
        {
            "id": 100780,
            "ctype": "campusonline.student",
            "presentation": "Liv Viola Schuhmann\n"
        },
        {
            "id": 100784,
            "ctype": "campusonline.student",
            "presentation": "Hanna Eder\n"
        },
        {
            "id": 100787,
            "ctype": "campusonline.student",
            "presentation": "Simon Fluch\n"
        },
        {
            "id": 100790,
            "ctype": "campusonline.student",
            "presentation": "Roland Johann Eder\n"
        },
        {
            "id": 100792,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Thenius\n"
        }
    ]
}