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=18020
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=18040",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18000",
    "results": [
        {
            "id": 104001,
            "ctype": "campusonline.student",
            "presentation": "ārsta Ilze Vernava\n"
        },
        {
            "id": 104004,
            "ctype": "campusonline.student",
            "presentation": "Michaela Feichter\n"
        },
        {
            "id": 104006,
            "ctype": "campusonline.student",
            "presentation": "Anna Neuhuber\n"
        },
        {
            "id": 104009,
            "ctype": "campusonline.student",
            "presentation": "Martin Niedermüller\n"
        },
        {
            "id": 104011,
            "ctype": "campusonline.student",
            "presentation": "Alexander Trattner\n"
        },
        {
            "id": 104013,
            "ctype": "campusonline.student",
            "presentation": "Sophie Holzer\n"
        },
        {
            "id": 104017,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Gumpoldsberger\n"
        },
        {
            "id": 104021,
            "ctype": "campusonline.student",
            "presentation": "Klemens Orasche\n"
        },
        {
            "id": 104024,
            "ctype": "campusonline.student",
            "presentation": "Martin Bürger\n"
        },
        {
            "id": 104028,
            "ctype": "campusonline.student",
            "presentation": "Peter Sommerauer\n"
        },
        {
            "id": 104030,
            "ctype": "campusonline.student",
            "presentation": "Michaela Vegh\n"
        },
        {
            "id": 104032,
            "ctype": "campusonline.student",
            "presentation": "Philipp Olschnig\n"
        },
        {
            "id": 104034,
            "ctype": "campusonline.student",
            "presentation": "Karoline Klotz\n"
        },
        {
            "id": 104036,
            "ctype": "campusonline.student",
            "presentation": "Elena Lilli Oberlercher\n"
        },
        {
            "id": 104038,
            "ctype": "campusonline.student",
            "presentation": "Elena Chiara Brandner\n"
        },
        {
            "id": 104040,
            "ctype": "campusonline.student",
            "presentation": "Julia Gewecke\n"
        },
        {
            "id": 104042,
            "ctype": "campusonline.student",
            "presentation": "Florentin Stacher\n"
        },
        {
            "id": 104050,
            "ctype": "campusonline.student",
            "presentation": "Johannes Christian Ratzenböck\n"
        },
        {
            "id": 104052,
            "ctype": "campusonline.student",
            "presentation": "Georg Michael Schwarz\n"
        },
        {
            "id": 104054,
            "ctype": "campusonline.student",
            "presentation": "Christina Lassnig\n"
        }
    ]
}