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=16900
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=16920",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16880",
    "results": [
        {
            "id": 100181,
            "ctype": "campusonline.student",
            "presentation": "Elena Hawranek\n"
        },
        {
            "id": 100183,
            "ctype": "campusonline.student",
            "presentation": "David Wucherer\n"
        },
        {
            "id": 100186,
            "ctype": "campusonline.student",
            "presentation": "Luisa Beck\n"
        },
        {
            "id": 100188,
            "ctype": "campusonline.student",
            "presentation": "Clara Christin Sorger\n"
        },
        {
            "id": 100194,
            "ctype": "campusonline.student",
            "presentation": "Laura Lillie Moser\n"
        },
        {
            "id": 100197,
            "ctype": "campusonline.student",
            "presentation": "Verena Sabrina Leitner\n"
        },
        {
            "id": 100199,
            "ctype": "campusonline.student",
            "presentation": "Aram Alexander Darvishzadeh\n"
        },
        {
            "id": 100201,
            "ctype": "campusonline.student",
            "presentation": "Manuel Hödl\n"
        },
        {
            "id": 100203,
            "ctype": "campusonline.student",
            "presentation": "Katharina Treuschitz\n"
        },
        {
            "id": 100205,
            "ctype": "campusonline.student",
            "presentation": "Maja Kling\n"
        },
        {
            "id": 100207,
            "ctype": "campusonline.student",
            "presentation": "Theresa Michlmayr\n"
        },
        {
            "id": 100212,
            "ctype": "campusonline.student",
            "presentation": "Anna Möstl\n"
        },
        {
            "id": 100215,
            "ctype": "campusonline.student",
            "presentation": "Michaela Thiel\n"
        },
        {
            "id": 100219,
            "ctype": "campusonline.student",
            "presentation": "Anna Unterrainer\n"
        },
        {
            "id": 100221,
            "ctype": "campusonline.student",
            "presentation": "Paul Anglett\n"
        },
        {
            "id": 100225,
            "ctype": "campusonline.student",
            "presentation": "Sarah Schuster\n"
        },
        {
            "id": 100227,
            "ctype": "campusonline.student",
            "presentation": "Antonia Valerie Reffle\n"
        },
        {
            "id": 100233,
            "ctype": "campusonline.student",
            "presentation": "Matthias Simon Krenss\n"
        },
        {
            "id": 100235,
            "ctype": "campusonline.student",
            "presentation": "Sophie Spitzlinger\n"
        },
        {
            "id": 100237,
            "ctype": "campusonline.student",
            "presentation": "Federico Scirè Chianetta\n"
        }
    ]
}