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=17960
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=17980",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17940",
    "results": [
        {
            "id": 103853,
            "ctype": "campusonline.student",
            "presentation": "Stefan Wegleitner\n"
        },
        {
            "id": 103856,
            "ctype": "campusonline.student",
            "presentation": "Alexander Hauser\n"
        },
        {
            "id": 103861,
            "ctype": "campusonline.student",
            "presentation": "Lena Constanze Luef\n"
        },
        {
            "id": 103864,
            "ctype": "campusonline.student",
            "presentation": "Joachim Lohr\n"
        },
        {
            "id": 103867,
            "ctype": "campusonline.student",
            "presentation": "Jana Hauser\n"
        },
        {
            "id": 103869,
            "ctype": "campusonline.student",
            "presentation": "Gerin Jochen Stadler\n"
        },
        {
            "id": 103871,
            "ctype": "campusonline.student",
            "presentation": "Luisa Kaltenecker\n"
        },
        {
            "id": 103873,
            "ctype": "campusonline.student",
            "presentation": "Anna Michaela Krippl\n"
        },
        {
            "id": 103875,
            "ctype": "campusonline.student",
            "presentation": "Paul Brabek\n"
        },
        {
            "id": 103877,
            "ctype": "campusonline.student",
            "presentation": "Teresa Maria Steiner\n"
        },
        {
            "id": 103879,
            "ctype": "campusonline.student",
            "presentation": "Nils Mönnich\n"
        },
        {
            "id": 103881,
            "ctype": "campusonline.student",
            "presentation": "Severin Husty\n"
        },
        {
            "id": 103883,
            "ctype": "campusonline.student",
            "presentation": "Anika Ruffenacht\n"
        },
        {
            "id": 103885,
            "ctype": "campusonline.student",
            "presentation": "Lena-Christin Quendler\n"
        },
        {
            "id": 103887,
            "ctype": "campusonline.student",
            "presentation": "Tena Turk\n"
        },
        {
            "id": 103889,
            "ctype": "campusonline.student",
            "presentation": "Julia Rausch\n"
        },
        {
            "id": 103893,
            "ctype": "campusonline.student",
            "presentation": "Florian Stromberger\n"
        },
        {
            "id": 103895,
            "ctype": "campusonline.student",
            "presentation": "Cornelia Rinner\n"
        },
        {
            "id": 103904,
            "ctype": "campusonline.student",
            "presentation": "Paul Niemand\n"
        },
        {
            "id": 103907,
            "ctype": "campusonline.student",
            "presentation": "Philipp Johannes Schafler\n"
        }
    ]
}