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=16520
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=16540",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16500",
    "results": [
        {
            "id": 98745,
            "ctype": "campusonline.student",
            "presentation": "Bernd Manuel Golja\n"
        },
        {
            "id": 98746,
            "ctype": "campusonline.student",
            "presentation": "Tobias Kohler\n"
        },
        {
            "id": 98750,
            "ctype": "campusonline.student",
            "presentation": "Julius Innauer\n"
        },
        {
            "id": 98752,
            "ctype": "campusonline.student",
            "presentation": "Pia Schaffer\n"
        },
        {
            "id": 98776,
            "ctype": "campusonline.student",
            "presentation": "Natalie Faroghi\n"
        },
        {
            "id": 98777,
            "ctype": "campusonline.student",
            "presentation": "Raphael Schlegel\n"
        },
        {
            "id": 98778,
            "ctype": "campusonline.student",
            "presentation": "Marie Meister\n"
        },
        {
            "id": 98781,
            "ctype": "campusonline.student",
            "presentation": "Christopher Kienle\n"
        },
        {
            "id": 98785,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Rainer\n"
        },
        {
            "id": 98786,
            "ctype": "campusonline.student",
            "presentation": "Gizem Yakut\n"
        },
        {
            "id": 98792,
            "ctype": "campusonline.student",
            "presentation": "Mag.sc.hum. Elke Friederike Ablinger\n"
        },
        {
            "id": 98793,
            "ctype": "campusonline.student",
            "presentation": "Tereza Krizmanich\n"
        },
        {
            "id": 98796,
            "ctype": "campusonline.student",
            "presentation": "Jutta Michaela Würschinger\n"
        },
        {
            "id": 98798,
            "ctype": "campusonline.student",
            "presentation": "Zhanat Koshenov\n"
        },
        {
            "id": 98809,
            "ctype": "campusonline.student",
            "presentation": "Dominik Bukowy\n"
        },
        {
            "id": 98821,
            "ctype": "campusonline.student",
            "presentation": "Julia Bandrés Mériz\n"
        },
        {
            "id": 98839,
            "ctype": "campusonline.student",
            "presentation": "Nigar Ahmadova\n"
        },
        {
            "id": 98850,
            "ctype": "campusonline.student",
            "presentation": "Vera Kanlic\n"
        },
        {
            "id": 98851,
            "ctype": "campusonline.student",
            "presentation": "Maria Maier\n"
        },
        {
            "id": 98857,
            "ctype": "campusonline.student",
            "presentation": "Larissa Maria Klug\n"
        }
    ]
}