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=15380
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=15400",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15360",
    "results": [
        {
            "id": 92747,
            "ctype": "campusonline.student",
            "presentation": "Anastasia Maria Grumeth\n"
        },
        {
            "id": 92748,
            "ctype": "campusonline.student",
            "presentation": "Peter Michael Strametz\n"
        },
        {
            "id": 92749,
            "ctype": "campusonline.student",
            "presentation": "Martin Embacher\n"
        },
        {
            "id": 92751,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Themeßl-Huber\n"
        },
        {
            "id": 92753,
            "ctype": "campusonline.student",
            "presentation": "Patrick Wolfgang Rebnegger\n"
        },
        {
            "id": 92754,
            "ctype": "campusonline.student",
            "presentation": "Stefan Toferer\n"
        },
        {
            "id": 92758,
            "ctype": "campusonline.student",
            "presentation": "Sandra Gieringer\n"
        },
        {
            "id": 92759,
            "ctype": "campusonline.student",
            "presentation": "Hannah Nahid Röhl\n"
        },
        {
            "id": 92763,
            "ctype": "campusonline.student",
            "presentation": "Adrian Stelzl\n"
        },
        {
            "id": 92765,
            "ctype": "campusonline.student",
            "presentation": "Paul Rensch\n"
        },
        {
            "id": 92767,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Santner\n"
        },
        {
            "id": 92768,
            "ctype": "campusonline.student",
            "presentation": "Michael Paul Kubatzki\n"
        },
        {
            "id": 92769,
            "ctype": "campusonline.student",
            "presentation": "Helen Sarah Cockin\n"
        },
        {
            "id": 92771,
            "ctype": "campusonline.student",
            "presentation": "Felix Manfred Feiler\n"
        },
        {
            "id": 92774,
            "ctype": "campusonline.student",
            "presentation": "Andreas Wolkerstorfer\n"
        },
        {
            "id": 92781,
            "ctype": "campusonline.student",
            "presentation": "Isabella Scheiblehner\n"
        },
        {
            "id": 92783,
            "ctype": "campusonline.student",
            "presentation": "Daniel Leitinger\n"
        },
        {
            "id": 92785,
            "ctype": "campusonline.student",
            "presentation": "Sandra Maria Winter\n"
        },
        {
            "id": 92786,
            "ctype": "campusonline.student",
            "presentation": "Tom Müller\n"
        },
        {
            "id": 92788,
            "ctype": "campusonline.student",
            "presentation": "Matthias Fössl\n"
        }
    ]
}