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=18560
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=18580",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18540",
    "results": [
        {
            "id": 105139,
            "ctype": "campusonline.student",
            "presentation": "Michael Zauner\n"
        },
        {
            "id": 105141,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Thomas Taucher\n"
        },
        {
            "id": 105143,
            "ctype": "campusonline.student",
            "presentation": "Stefan Franz Stani\n"
        },
        {
            "id": 105145,
            "ctype": "campusonline.student",
            "presentation": "Mag. Miriam Mikschofsky\n"
        },
        {
            "id": 105151,
            "ctype": "campusonline.student",
            "presentation": "Eveline Christiane Deutsch\n"
        },
        {
            "id": 105155,
            "ctype": "campusonline.student",
            "presentation": "Jennifer Jasmin Grabner\n"
        },
        {
            "id": 105158,
            "ctype": "campusonline.student",
            "presentation": "Franz Friedrich Kolmann\n"
        },
        {
            "id": 105160,
            "ctype": "campusonline.student",
            "presentation": "Anastasiya Stakhanska\n"
        },
        {
            "id": 105162,
            "ctype": "campusonline.student",
            "presentation": "Staša Florjančič\n"
        },
        {
            "id": 105164,
            "ctype": "campusonline.student",
            "presentation": "Arūnė Žičkevičiūtė\n"
        },
        {
            "id": 105170,
            "ctype": "campusonline.student",
            "presentation": "Tjaša Antonič\n"
        },
        {
            "id": 105174,
            "ctype": "campusonline.student",
            "presentation": "Philopatir Farag\n"
        },
        {
            "id": 105176,
            "ctype": "campusonline.student",
            "presentation": "Pavlina Javorova\n"
        },
        {
            "id": 105178,
            "ctype": "campusonline.student",
            "presentation": "Vanessa Jäger\n"
        },
        {
            "id": 105181,
            "ctype": "campusonline.student",
            "presentation": "Pierre Pacher\n"
        },
        {
            "id": 105185,
            "ctype": "campusonline.student",
            "presentation": "Patryk Rudzinski\n"
        },
        {
            "id": 105187,
            "ctype": "campusonline.student",
            "presentation": "Melina Tsiountsioura\n"
        },
        {
            "id": 105191,
            "ctype": "campusonline.student",
            "presentation": "Clara Carmignan\n"
        },
        {
            "id": 105193,
            "ctype": "campusonline.student",
            "presentation": "Ioanna Angelaki\n"
        },
        {
            "id": 105197,
            "ctype": "campusonline.student",
            "presentation": "Sarah Marie Nußbaum\n"
        }
    ]
}