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=18120
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=18140",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18100",
    "results": [
        {
            "id": 104155,
            "ctype": "campusonline.student",
            "presentation": "Tobias Erker\n"
        },
        {
            "id": 104157,
            "ctype": "campusonline.student",
            "presentation": "Leo Matthias Gramelsberger\n"
        },
        {
            "id": 104159,
            "ctype": "campusonline.student",
            "presentation": "Franziska Johanna Lindner\n"
        },
        {
            "id": 104161,
            "ctype": "campusonline.student",
            "presentation": "Felix Knotzer\n"
        },
        {
            "id": 104165,
            "ctype": "campusonline.student",
            "presentation": "Florian Anton Kehrer\n"
        },
        {
            "id": 104167,
            "ctype": "campusonline.student",
            "presentation": "Veronika Auer\n"
        },
        {
            "id": 104169,
            "ctype": "campusonline.student",
            "presentation": "Nura Nefzi\n"
        },
        {
            "id": 104173,
            "ctype": "campusonline.student",
            "presentation": "Maria-Sofie Pichler\n"
        },
        {
            "id": 104174,
            "ctype": "campusonline.student",
            "presentation": "Konrad Rüther\n"
        },
        {
            "id": 104175,
            "ctype": "campusonline.student",
            "presentation": "Anna-Katharina Dastel\n"
        },
        {
            "id": 104176,
            "ctype": "campusonline.student",
            "presentation": "Anna Pauline Metzler\n"
        },
        {
            "id": 104177,
            "ctype": "campusonline.student",
            "presentation": "Jana Obereder\n"
        },
        {
            "id": 104178,
            "ctype": "campusonline.student",
            "presentation": "Deborah Angleitner\n"
        },
        {
            "id": 104179,
            "ctype": "campusonline.student",
            "presentation": "Nils Hermsdorfer\n"
        },
        {
            "id": 104180,
            "ctype": "campusonline.student",
            "presentation": "Elena Neumüller\n"
        },
        {
            "id": 104181,
            "ctype": "campusonline.student",
            "presentation": "Marlene Endlicher\n"
        },
        {
            "id": 104182,
            "ctype": "campusonline.student",
            "presentation": "Moritz Schibalsky\n"
        },
        {
            "id": 104183,
            "ctype": "campusonline.student",
            "presentation": "Lena Cäcilia Hüdl\n"
        },
        {
            "id": 104184,
            "ctype": "campusonline.student",
            "presentation": "Andreas Ahrer\n"
        },
        {
            "id": 104185,
            "ctype": "campusonline.student",
            "presentation": "Selin Özdemir\n"
        }
    ]
}