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=16160
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=16180",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16140",
    "results": [
        {
            "id": 97368,
            "ctype": "campusonline.student",
            "presentation": "Olga Ribalko\n"
        },
        {
            "id": 97438,
            "ctype": "campusonline.student",
            "presentation": "Joshua Tobias Epple\n"
        },
        {
            "id": 97454,
            "ctype": "campusonline.student",
            "presentation": "Lejla Malanovic\n"
        },
        {
            "id": 97480,
            "ctype": "campusonline.student",
            "presentation": "Victoria Hois\n"
        },
        {
            "id": 97484,
            "ctype": "campusonline.student",
            "presentation": "Tony Christian Schmidt\n"
        },
        {
            "id": 97534,
            "ctype": "campusonline.student",
            "presentation": "Kamel Abd El Hai\n"
        },
        {
            "id": 97557,
            "ctype": "campusonline.student",
            "presentation": "Ayse Ceren Mutgan\n"
        },
        {
            "id": 97575,
            "ctype": "campusonline.student",
            "presentation": "Vladlena Timofieieva\n"
        },
        {
            "id": 97583,
            "ctype": "campusonline.student",
            "presentation": "Julia Plattner\n"
        },
        {
            "id": 97595,
            "ctype": "campusonline.student",
            "presentation": "Dott.mag. Angelo Ascani\n"
        },
        {
            "id": 97603,
            "ctype": "campusonline.student",
            "presentation": "Marija Durdevic\n"
        },
        {
            "id": 97632,
            "ctype": "campusonline.student",
            "presentation": "Barbara Dreo\n"
        },
        {
            "id": 97664,
            "ctype": "campusonline.student",
            "presentation": "Sofia Raftopoulou\n"
        },
        {
            "id": 97720,
            "ctype": "campusonline.student",
            "presentation": "Irene Speicher\n"
        },
        {
            "id": 97807,
            "ctype": "campusonline.student",
            "presentation": "Paulina Valadez Cosmes\n"
        },
        {
            "id": 97809,
            "ctype": "campusonline.student",
            "presentation": "Nika Medic\n"
        },
        {
            "id": 97828,
            "ctype": "campusonline.student",
            "presentation": "Kathrin Stefanie Maitz\n"
        },
        {
            "id": 97879,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Roszipal\n"
        },
        {
            "id": 97888,
            "ctype": "campusonline.student",
            "presentation": "Lisa Maria Knoll\n"
        },
        {
            "id": 97889,
            "ctype": "campusonline.student",
            "presentation": "Stefanie Duller\n"
        }
    ]
}