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=18580
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=18600",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18560",
    "results": [
        {
            "id": 105199,
            "ctype": "campusonline.student",
            "presentation": "Undine Zeltina\n"
        },
        {
            "id": 105201,
            "ctype": "campusonline.student",
            "presentation": "Janina Frenk\n"
        },
        {
            "id": 105205,
            "ctype": "campusonline.student",
            "presentation": "Irene Hurtado de Mendoza Sanchez\n"
        },
        {
            "id": 105207,
            "ctype": "campusonline.student",
            "presentation": "Almina Softić\n"
        },
        {
            "id": 105209,
            "ctype": "campusonline.student",
            "presentation": "Susanne Grundner\n"
        },
        {
            "id": 105211,
            "ctype": "campusonline.student",
            "presentation": "Lia Sophie Wurzer\n"
        },
        {
            "id": 105213,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Maria Weinberger\n"
        },
        {
            "id": 105215,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Dr.rer.nat. Andrea Förster-Sümecz\n"
        },
        {
            "id": 105218,
            "ctype": "campusonline.student",
            "presentation": "Georgios Vlachos\n"
        },
        {
            "id": 105222,
            "ctype": "campusonline.student",
            "presentation": "Hannes-Jonas Neßling\n"
        },
        {
            "id": 105226,
            "ctype": "campusonline.student",
            "presentation": "Anita Supper\n"
        },
        {
            "id": 105228,
            "ctype": "campusonline.student",
            "presentation": "Aleksandra Skwarek\n"
        },
        {
            "id": 105230,
            "ctype": "campusonline.student",
            "presentation": "Laura Schmidberger\n"
        },
        {
            "id": 105234,
            "ctype": "campusonline.student",
            "presentation": "Janna Chiara Barbara Terplak\n"
        },
        {
            "id": 105236,
            "ctype": "campusonline.student",
            "presentation": "Georg Emanuel Schmitz\n"
        },
        {
            "id": 105238,
            "ctype": "campusonline.student",
            "presentation": "Tim Van Oudenhove\n"
        },
        {
            "id": 105240,
            "ctype": "campusonline.student",
            "presentation": "Adelia Nabiullina\n"
        },
        {
            "id": 105242,
            "ctype": "campusonline.student",
            "presentation": "Anastasiia Kriuchkova\n"
        },
        {
            "id": 105244,
            "ctype": "campusonline.student",
            "presentation": "Veronika Mokhnacheva\n"
        },
        {
            "id": 105246,
            "ctype": "campusonline.student",
            "presentation": "Johanna Pirchner\n"
        }
    ]
}