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=16620
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=16640",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16600",
    "results": [
        {
            "id": 98960,
            "ctype": "campusonline.student",
            "presentation": "Emanuel Ägidius Mayböck\n"
        },
        {
            "id": 98961,
            "ctype": "campusonline.student",
            "presentation": "Marius Mehring\n"
        },
        {
            "id": 98962,
            "ctype": "campusonline.student",
            "presentation": "Sarah Niloufar Meyer\n"
        },
        {
            "id": 98963,
            "ctype": "campusonline.student",
            "presentation": "Madeline Negele\n"
        },
        {
            "id": 98964,
            "ctype": "campusonline.student",
            "presentation": "Lukas Netter\n"
        },
        {
            "id": 98965,
            "ctype": "campusonline.student",
            "presentation": "Kerstin Neumayr\n"
        },
        {
            "id": 98966,
            "ctype": "campusonline.student",
            "presentation": "Celina Nocker\n"
        },
        {
            "id": 98967,
            "ctype": "campusonline.student",
            "presentation": "Fredrik Andreas Noll\n"
        },
        {
            "id": 98968,
            "ctype": "campusonline.student",
            "presentation": "Jakob Obereigner\n"
        },
        {
            "id": 98969,
            "ctype": "campusonline.student",
            "presentation": "Cordula Oppenauer\n"
        },
        {
            "id": 98970,
            "ctype": "campusonline.student",
            "presentation": "Nuray Ören\n"
        },
        {
            "id": 98971,
            "ctype": "campusonline.student",
            "presentation": "Florian Ortbauer\n"
        },
        {
            "id": 98972,
            "ctype": "campusonline.student",
            "presentation": "Julia Petra Ostermayer\n"
        },
        {
            "id": 98973,
            "ctype": "campusonline.student",
            "presentation": "Eva Pauer\n"
        },
        {
            "id": 98974,
            "ctype": "campusonline.student",
            "presentation": "Jakob Paungarttner\n"
        },
        {
            "id": 98975,
            "ctype": "campusonline.student",
            "presentation": "Tim Felix Petan\n"
        },
        {
            "id": 98976,
            "ctype": "campusonline.student",
            "presentation": "Lauritz Maximilian Pfefferl\n"
        },
        {
            "id": 98977,
            "ctype": "campusonline.student",
            "presentation": "Paul Pichler\n"
        },
        {
            "id": 98978,
            "ctype": "campusonline.student",
            "presentation": "Lisa Maria Plattner\n"
        },
        {
            "id": 98979,
            "ctype": "campusonline.student",
            "presentation": "Eva Posch\n"
        }
    ]
}