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=15980
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=16000",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15960",
    "results": [
        {
            "id": 96203,
            "ctype": "campusonline.student",
            "presentation": "Bettina Simone Ganghofer\n"
        },
        {
            "id": 96208,
            "ctype": "campusonline.student",
            "presentation": "Selina Dissauer\n"
        },
        {
            "id": 96209,
            "ctype": "campusonline.student",
            "presentation": "Viktor Gfrerer\n"
        },
        {
            "id": 96212,
            "ctype": "campusonline.student",
            "presentation": "David Salehi\n"
        },
        {
            "id": 96213,
            "ctype": "campusonline.student",
            "presentation": "Marlene Reithofer\n"
        },
        {
            "id": 96219,
            "ctype": "campusonline.student",
            "presentation": "Lisa Monja Sagert\n"
        },
        {
            "id": 96222,
            "ctype": "campusonline.student",
            "presentation": "Johannes Neumüller\n"
        },
        {
            "id": 96227,
            "ctype": "campusonline.student",
            "presentation": "Cornelius Weber\n"
        },
        {
            "id": 96232,
            "ctype": "campusonline.student",
            "presentation": "Paula Schmieder\n"
        },
        {
            "id": 96237,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Hirzberger\n"
        },
        {
            "id": 96239,
            "ctype": "campusonline.student",
            "presentation": "Lorenz Konstantin Klöckl\n"
        },
        {
            "id": 96241,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Katharina Fegerl\n"
        },
        {
            "id": 96247,
            "ctype": "campusonline.student",
            "presentation": "Christian Johannes Röbl\n"
        },
        {
            "id": 96266,
            "ctype": "campusonline.student",
            "presentation": "Paul Philipp Kofler\n"
        },
        {
            "id": 96268,
            "ctype": "campusonline.student",
            "presentation": "Cherelle Chante Purcell\n"
        },
        {
            "id": 96272,
            "ctype": "campusonline.student",
            "presentation": "Julian Gruber\n"
        },
        {
            "id": 96274,
            "ctype": "campusonline.student",
            "presentation": "Christopher Longitsch\n"
        },
        {
            "id": 96278,
            "ctype": "campusonline.student",
            "presentation": "Julia Weiss\n"
        },
        {
            "id": 96282,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Ziegler\n"
        },
        {
            "id": 96283,
            "ctype": "campusonline.student",
            "presentation": "Hannah Bullacher\n"
        }
    ]
}