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=17060
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=17080",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17040",
    "results": [
        {
            "id": 100622,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Kölbl\n"
        },
        {
            "id": 100624,
            "ctype": "campusonline.student",
            "presentation": "Daniel Petutschnig\n"
        },
        {
            "id": 100628,
            "ctype": "campusonline.student",
            "presentation": "Johanna Sophie Auer\n"
        },
        {
            "id": 100630,
            "ctype": "campusonline.student",
            "presentation": "Johannes Zach\n"
        },
        {
            "id": 100632,
            "ctype": "campusonline.student",
            "presentation": "Marc Christian Brommer\n"
        },
        {
            "id": 100634,
            "ctype": "campusonline.student",
            "presentation": "Pero Ravnjak\n"
        },
        {
            "id": 100636,
            "ctype": "campusonline.student",
            "presentation": "Jakob Martin Tettmann\n"
        },
        {
            "id": 100638,
            "ctype": "campusonline.student",
            "presentation": "Iris Katharina Eichtinger\n"
        },
        {
            "id": 100640,
            "ctype": "campusonline.student",
            "presentation": "Marcel Paura\n"
        },
        {
            "id": 100642,
            "ctype": "campusonline.student",
            "presentation": "Charlotte Sophie Grisold\n"
        },
        {
            "id": 100644,
            "ctype": "campusonline.student",
            "presentation": "Jana Schmitz\n"
        },
        {
            "id": 100646,
            "ctype": "campusonline.student",
            "presentation": "Christina Raid\n"
        },
        {
            "id": 100648,
            "ctype": "campusonline.student",
            "presentation": "Oskar Wiesinger\n"
        },
        {
            "id": 100650,
            "ctype": "campusonline.student",
            "presentation": "Alix Olga Marie Kirpicsenko\n"
        },
        {
            "id": 100652,
            "ctype": "campusonline.student",
            "presentation": "Katharina Lischnig\n"
        },
        {
            "id": 100654,
            "ctype": "campusonline.student",
            "presentation": "Jakob Holzer\n"
        },
        {
            "id": 100656,
            "ctype": "campusonline.student",
            "presentation": "Ray Pasko\n"
        },
        {
            "id": 100658,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Marie Schardtmüller\n"
        },
        {
            "id": 100660,
            "ctype": "campusonline.student",
            "presentation": "Johanna Schreibmaier\n"
        },
        {
            "id": 100662,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Dörfler\n"
        }
    ]
}