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=15680
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=15700",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15660",
    "results": [
        {
            "id": 94039,
            "ctype": "campusonline.student",
            "presentation": "Raphaela Ashrafi Gandjeh\n"
        },
        {
            "id": 94048,
            "ctype": "campusonline.student",
            "presentation": "Julia Schaller\n"
        },
        {
            "id": 94053,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Hantschk\n"
        },
        {
            "id": 94061,
            "ctype": "campusonline.student",
            "presentation": "Amina Bougrine\n"
        },
        {
            "id": 94081,
            "ctype": "campusonline.student",
            "presentation": "Rocco Claudio Botrugno\n"
        },
        {
            "id": 94083,
            "ctype": "campusonline.student",
            "presentation": "Laura Taxacher\n"
        },
        {
            "id": 94093,
            "ctype": "campusonline.student",
            "presentation": "Nina Christin Knittelfelder\n"
        },
        {
            "id": 94096,
            "ctype": "campusonline.student",
            "presentation": "Katharina Hofmann\n"
        },
        {
            "id": 94103,
            "ctype": "campusonline.student",
            "presentation": "Lejla Pesto\n"
        },
        {
            "id": 94105,
            "ctype": "campusonline.student",
            "presentation": "Barbara Jelušić\n"
        },
        {
            "id": 94118,
            "ctype": "campusonline.student",
            "presentation": "Andrea Krisai\n"
        },
        {
            "id": 94120,
            "ctype": "campusonline.student",
            "presentation": "Timur Ergül\n"
        },
        {
            "id": 94124,
            "ctype": "campusonline.student",
            "presentation": "Judith Maria Kremser\n"
        },
        {
            "id": 94128,
            "ctype": "campusonline.student",
            "presentation": "Metapt. Athina Trakaki\n"
        },
        {
            "id": 94152,
            "ctype": "campusonline.student",
            "presentation": "Claus Qeleshi\n"
        },
        {
            "id": 94173,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Weinrauch\n"
        },
        {
            "id": 94174,
            "ctype": "campusonline.student",
            "presentation": "Manuela Kral\n"
        },
        {
            "id": 94212,
            "ctype": "campusonline.student",
            "presentation": "Amir Farahani\n"
        },
        {
            "id": 94227,
            "ctype": "campusonline.student",
            "presentation": "dr. med. Arianna Bizatzki\n"
        },
        {
            "id": 94229,
            "ctype": "campusonline.student",
            "presentation": "Sandra Frühwirth\n"
        }
    ]
}