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=16060
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=16080",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16040",
    "results": [
        {
            "id": 96665,
            "ctype": "campusonline.student",
            "presentation": "Schajan Sharifian Pour\n"
        },
        {
            "id": 96666,
            "ctype": "campusonline.student",
            "presentation": "Paul Küllinger\n"
        },
        {
            "id": 96667,
            "ctype": "campusonline.student",
            "presentation": "Justus Cladders\n"
        },
        {
            "id": 96669,
            "ctype": "campusonline.student",
            "presentation": "Helena Clarissa Haas\n"
        },
        {
            "id": 96672,
            "ctype": "campusonline.student",
            "presentation": "Philipp Redenius\n"
        },
        {
            "id": 96687,
            "ctype": "campusonline.student",
            "presentation": "Elena Hanna Maria Reimold\n"
        },
        {
            "id": 96820,
            "ctype": "campusonline.student",
            "presentation": "Veronika Kögler\n"
        },
        {
            "id": 96821,
            "ctype": "campusonline.student",
            "presentation": "Marcell Krall\n"
        },
        {
            "id": 96822,
            "ctype": "campusonline.student",
            "presentation": "Marlene Mercsanics\n"
        },
        {
            "id": 96826,
            "ctype": "campusonline.student",
            "presentation": "Matthias Gruber\n"
        },
        {
            "id": 96827,
            "ctype": "campusonline.student",
            "presentation": "Jana Matauschek\n"
        },
        {
            "id": 96829,
            "ctype": "campusonline.student",
            "presentation": "Fiona Brugger\n"
        },
        {
            "id": 96830,
            "ctype": "campusonline.student",
            "presentation": "Victoria Caroline Gölzner\n"
        },
        {
            "id": 96831,
            "ctype": "campusonline.student",
            "presentation": "Philipp Bruchmann\n"
        },
        {
            "id": 96832,
            "ctype": "campusonline.student",
            "presentation": "Ines Julia Neumann\n"
        },
        {
            "id": 96833,
            "ctype": "campusonline.student",
            "presentation": "Elena Nourani\n"
        },
        {
            "id": 96834,
            "ctype": "campusonline.student",
            "presentation": "Khoshhal Zarif\n"
        },
        {
            "id": 96838,
            "ctype": "campusonline.student",
            "presentation": "Valentin Johannes Schaper\n"
        },
        {
            "id": 96839,
            "ctype": "campusonline.student",
            "presentation": "Marta Tiefenthaler\n"
        },
        {
            "id": 96841,
            "ctype": "campusonline.student",
            "presentation": "Chiara Julia Reinprecht\n"
        }
    ]
}