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=17820
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=17840",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17800",
    "results": [
        {
            "id": 103444,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Christoph Hanisch\n"
        },
        {
            "id": 103446,
            "ctype": "campusonline.student",
            "presentation": "Kaj Andrea Dingenotto\n"
        },
        {
            "id": 103448,
            "ctype": "campusonline.student",
            "presentation": "Selina Goritschan\n"
        },
        {
            "id": 103450,
            "ctype": "campusonline.student",
            "presentation": "Wenzel Deutz\n"
        },
        {
            "id": 103454,
            "ctype": "campusonline.student",
            "presentation": "Jakob Humer\n"
        },
        {
            "id": 103456,
            "ctype": "campusonline.student",
            "presentation": "Anna Katharina Dietrich\n"
        },
        {
            "id": 103459,
            "ctype": "campusonline.student",
            "presentation": "Johanna Jakse\n"
        },
        {
            "id": 103461,
            "ctype": "campusonline.student",
            "presentation": "Hannah Temmel\n"
        },
        {
            "id": 103463,
            "ctype": "campusonline.student",
            "presentation": "Amelia Linder\n"
        },
        {
            "id": 103465,
            "ctype": "campusonline.student",
            "presentation": "Lara Maria Maier\n"
        },
        {
            "id": 103467,
            "ctype": "campusonline.student",
            "presentation": "Franziska Ebner\n"
        },
        {
            "id": 103471,
            "ctype": "campusonline.student",
            "presentation": "Elias Heinrich\n"
        },
        {
            "id": 103473,
            "ctype": "campusonline.student",
            "presentation": "Emanuel Heritsch\n"
        },
        {
            "id": 103475,
            "ctype": "campusonline.student",
            "presentation": "Phillip Roland Rohrmeier\n"
        },
        {
            "id": 103478,
            "ctype": "campusonline.student",
            "presentation": "Peter Spannagl\n"
        },
        {
            "id": 103481,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Georg Schmid\n"
        },
        {
            "id": 103483,
            "ctype": "campusonline.student",
            "presentation": "Leo-Sebastian Freytag\n"
        },
        {
            "id": 103485,
            "ctype": "campusonline.student",
            "presentation": "Carolin Ranetbauer\n"
        },
        {
            "id": 103487,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Kerschat\n"
        },
        {
            "id": 103489,
            "ctype": "campusonline.student",
            "presentation": "Laura Löscher\n"
        }
    ]
}