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=17880
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=17900",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17860",
    "results": [
        {
            "id": 103619,
            "ctype": "campusonline.student",
            "presentation": "Alexander Kober\n"
        },
        {
            "id": 103621,
            "ctype": "campusonline.student",
            "presentation": "Valeria Luther\n"
        },
        {
            "id": 103623,
            "ctype": "campusonline.student",
            "presentation": "Lena Maria Leitner\n"
        },
        {
            "id": 103626,
            "ctype": "campusonline.student",
            "presentation": "Philipp Seidlmann\n"
        },
        {
            "id": 103630,
            "ctype": "campusonline.student",
            "presentation": "Julia Masser\n"
        },
        {
            "id": 103632,
            "ctype": "campusonline.student",
            "presentation": "Sophia Marie Alexandra Schröpf\n"
        },
        {
            "id": 103638,
            "ctype": "campusonline.student",
            "presentation": "Lotte Luise Seiler\n"
        },
        {
            "id": 103643,
            "ctype": "campusonline.student",
            "presentation": "Simone Liebhard\n"
        },
        {
            "id": 103645,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Gebeshuber\n"
        },
        {
            "id": 103650,
            "ctype": "campusonline.student",
            "presentation": "Anna Schiffer\n"
        },
        {
            "id": 103652,
            "ctype": "campusonline.student",
            "presentation": "Elena Therese Tuchscherer\n"
        },
        {
            "id": 103654,
            "ctype": "campusonline.student",
            "presentation": "Jana Maria Lippitsch\n"
        },
        {
            "id": 103656,
            "ctype": "campusonline.student",
            "presentation": "Lena Kühebacher\n"
        },
        {
            "id": 103658,
            "ctype": "campusonline.student",
            "presentation": "Christina Schützeneder\n"
        },
        {
            "id": 103660,
            "ctype": "campusonline.student",
            "presentation": "Raphael Sommerfeld\n"
        },
        {
            "id": 103662,
            "ctype": "campusonline.student",
            "presentation": "Veronika Nemeth\n"
        },
        {
            "id": 103666,
            "ctype": "campusonline.student",
            "presentation": "Daniel Fruhmann\n"
        },
        {
            "id": 103669,
            "ctype": "campusonline.student",
            "presentation": "Julian Fürst\n"
        },
        {
            "id": 103675,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Marie Wölfl\n"
        },
        {
            "id": 103678,
            "ctype": "campusonline.student",
            "presentation": "Nora Melbinger\n"
        }
    ]
}