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=15460
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=15480",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15440",
    "results": [
        {
            "id": 93036,
            "ctype": "campusonline.student",
            "presentation": "Maria Wimmer\n"
        },
        {
            "id": 93037,
            "ctype": "campusonline.student",
            "presentation": "Lena Maria Schnaitl\n"
        },
        {
            "id": 93038,
            "ctype": "campusonline.student",
            "presentation": "Tayisiya Filippova\n"
        },
        {
            "id": 93039,
            "ctype": "campusonline.student",
            "presentation": "Clara Ausweger\n"
        },
        {
            "id": 93040,
            "ctype": "campusonline.student",
            "presentation": "Lorenz Peer\n"
        },
        {
            "id": 93043,
            "ctype": "campusonline.student",
            "presentation": "Florian Gallob\n"
        },
        {
            "id": 93044,
            "ctype": "campusonline.student",
            "presentation": "Hannah Shirin Schardtmüller\n"
        },
        {
            "id": 93047,
            "ctype": "campusonline.student",
            "presentation": "Isabelle Christine Dettmer\n"
        },
        {
            "id": 93049,
            "ctype": "campusonline.student",
            "presentation": "Janosch Niknam Saeidi\n"
        },
        {
            "id": 93054,
            "ctype": "campusonline.student",
            "presentation": "Julia Skocajic\n"
        },
        {
            "id": 93055,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Karner\n"
        },
        {
            "id": 93057,
            "ctype": "campusonline.student",
            "presentation": "Katharina Adelwöhrer\n"
        },
        {
            "id": 93058,
            "ctype": "campusonline.student",
            "presentation": "Moritz Soffried\n"
        },
        {
            "id": 93061,
            "ctype": "campusonline.student",
            "presentation": "Laura Theresa Mente\n"
        },
        {
            "id": 93062,
            "ctype": "campusonline.student",
            "presentation": "Deniz Tekin\n"
        },
        {
            "id": 93063,
            "ctype": "campusonline.student",
            "presentation": "Anna-Maria Pansi\n"
        },
        {
            "id": 93065,
            "ctype": "campusonline.student",
            "presentation": "Lukas Hobl\n"
        },
        {
            "id": 93073,
            "ctype": "campusonline.student",
            "presentation": "Belinda Limberger\n"
        },
        {
            "id": 93074,
            "ctype": "campusonline.student",
            "presentation": "Patricia Böhm\n"
        },
        {
            "id": 93078,
            "ctype": "campusonline.student",
            "presentation": "Marc Kleinschuster\n"
        }
    ]
}