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=15420
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=15440",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15400",
    "results": [
        {
            "id": 92834,
            "ctype": "campusonline.student",
            "presentation": "Anja Schmidt\n"
        },
        {
            "id": 92835,
            "ctype": "campusonline.student",
            "presentation": "Marie-Theres Fleischhacker\n"
        },
        {
            "id": 92838,
            "ctype": "campusonline.student",
            "presentation": "Matthias Leitner\n"
        },
        {
            "id": 92840,
            "ctype": "campusonline.student",
            "presentation": "Thomas Benedikt\n"
        },
        {
            "id": 92842,
            "ctype": "campusonline.student",
            "presentation": "Ann-Sophie Kuhn\n"
        },
        {
            "id": 92843,
            "ctype": "campusonline.student",
            "presentation": "Daniel Ruben Pietsch\n"
        },
        {
            "id": 92846,
            "ctype": "campusonline.student",
            "presentation": "Carolin Schweighofer\n"
        },
        {
            "id": 92848,
            "ctype": "campusonline.student",
            "presentation": "Michael Stöckler\n"
        },
        {
            "id": 92851,
            "ctype": "campusonline.student",
            "presentation": "Florian Knaller\n"
        },
        {
            "id": 92854,
            "ctype": "campusonline.student",
            "presentation": "Georg Hugo Tsangarakis\n"
        },
        {
            "id": 92868,
            "ctype": "campusonline.student",
            "presentation": "Marina Schinnerl\n"
        },
        {
            "id": 92873,
            "ctype": "campusonline.student",
            "presentation": "Raffaela Christina Maurer\n"
        },
        {
            "id": 92883,
            "ctype": "campusonline.student",
            "presentation": "Michaela Schneider\n"
        },
        {
            "id": 92884,
            "ctype": "campusonline.student",
            "presentation": "Danijel Colovic\n"
        },
        {
            "id": 92886,
            "ctype": "campusonline.student",
            "presentation": "Roland Illmayer\n"
        },
        {
            "id": 92888,
            "ctype": "campusonline.student",
            "presentation": "Victoria Elisabeth Patricia Huber\n"
        },
        {
            "id": 92891,
            "ctype": "campusonline.student",
            "presentation": "Thomas Kucher\n"
        },
        {
            "id": 92892,
            "ctype": "campusonline.student",
            "presentation": "Jekaterina Baumgartner\n"
        },
        {
            "id": 92901,
            "ctype": "campusonline.student",
            "presentation": "Christoph Hobisch\n"
        },
        {
            "id": 92905,
            "ctype": "campusonline.student",
            "presentation": "Lukas Buchacher\n"
        }
    ]
}