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=18220
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=18240",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18200",
    "results": [
        {
            "id": 104291,
            "ctype": "campusonline.student",
            "presentation": "Stefan Block\n"
        },
        {
            "id": 104292,
            "ctype": "campusonline.student",
            "presentation": "Sara Schaumüller\n"
        },
        {
            "id": 104293,
            "ctype": "campusonline.student",
            "presentation": "Sandra Moser\n"
        },
        {
            "id": 104294,
            "ctype": "campusonline.student",
            "presentation": "Andreas Thomas Duscha\n"
        },
        {
            "id": 104295,
            "ctype": "campusonline.student",
            "presentation": "Christiane Ortner\n"
        },
        {
            "id": 104296,
            "ctype": "campusonline.student",
            "presentation": "Philip Badinger\n"
        },
        {
            "id": 104297,
            "ctype": "campusonline.student",
            "presentation": "Marlene Krenn\n"
        },
        {
            "id": 104298,
            "ctype": "campusonline.student",
            "presentation": "Milos Cojder\n"
        },
        {
            "id": 104299,
            "ctype": "campusonline.student",
            "presentation": "Luise Elmer\n"
        },
        {
            "id": 104300,
            "ctype": "campusonline.student",
            "presentation": "Denise Paulmaier\n"
        },
        {
            "id": 104301,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Mayrhofer\n"
        },
        {
            "id": 104305,
            "ctype": "campusonline.student",
            "presentation": "Maria Antonia Bisail\n"
        },
        {
            "id": 104311,
            "ctype": "campusonline.student",
            "presentation": "Stefan Lammer\n"
        },
        {
            "id": 104314,
            "ctype": "campusonline.student",
            "presentation": "Mikhail Kazantsev\n"
        },
        {
            "id": 104321,
            "ctype": "campusonline.student",
            "presentation": "Matthias Jilch\n"
        },
        {
            "id": 104322,
            "ctype": "campusonline.student",
            "presentation": "Gabriel Grgic\n"
        },
        {
            "id": 104323,
            "ctype": "campusonline.student",
            "presentation": "Franziska Leeb\n"
        },
        {
            "id": 104324,
            "ctype": "campusonline.student",
            "presentation": "Idoia Pamina Süß Agon\n"
        },
        {
            "id": 104325,
            "ctype": "campusonline.student",
            "presentation": "Isabella Viehböck\n"
        },
        {
            "id": 104326,
            "ctype": "campusonline.student",
            "presentation": "Daniel Schützenberger\n"
        }
    ]
}