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=15580
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=15600",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15560",
    "results": [
        {
            "id": 93387,
            "ctype": "campusonline.student",
            "presentation": "Frederik Michael Wiessner\n"
        },
        {
            "id": 93389,
            "ctype": "campusonline.student",
            "presentation": "Emanuel Steiner\n"
        },
        {
            "id": 93391,
            "ctype": "campusonline.student",
            "presentation": "Bernhard Raphael Pelzl\n"
        },
        {
            "id": 93400,
            "ctype": "campusonline.student",
            "presentation": "Victoria Katharina Pernsteiner\n"
        },
        {
            "id": 93401,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Sophie Manden\n"
        },
        {
            "id": 93404,
            "ctype": "campusonline.student",
            "presentation": "Roland Sebastian Preißler\n"
        },
        {
            "id": 93406,
            "ctype": "campusonline.student",
            "presentation": "Marc Moritz Pieber\n"
        },
        {
            "id": 93409,
            "ctype": "campusonline.student",
            "presentation": "Antonio Filic\n"
        },
        {
            "id": 93411,
            "ctype": "campusonline.student",
            "presentation": "Barbara Ehall\n"
        },
        {
            "id": 93414,
            "ctype": "campusonline.student",
            "presentation": "Samy Mady\n"
        },
        {
            "id": 93415,
            "ctype": "campusonline.student",
            "presentation": "Oliver Gumpenberger\n"
        },
        {
            "id": 93433,
            "ctype": "campusonline.student",
            "presentation": "Jurij Maurer\n"
        },
        {
            "id": 93434,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Goschnik\n"
        },
        {
            "id": 93436,
            "ctype": "campusonline.student",
            "presentation": "Leon Magnus Potjan\n"
        },
        {
            "id": 93445,
            "ctype": "campusonline.student",
            "presentation": "Mario Hans Melinz\n"
        },
        {
            "id": 93447,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Erich Würtz\n"
        },
        {
            "id": 93448,
            "ctype": "campusonline.student",
            "presentation": "Jelena Rokvic\n"
        },
        {
            "id": 93452,
            "ctype": "campusonline.student",
            "presentation": "Nina Kainbacher\n"
        },
        {
            "id": 93457,
            "ctype": "campusonline.student",
            "presentation": "Markus Maierhofer\n"
        },
        {
            "id": 93462,
            "ctype": "campusonline.student",
            "presentation": "Kristin Aurenhammer\n"
        }
    ]
}