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=18200
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=18220",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18180",
    "results": [
        {
            "id": 104271,
            "ctype": "campusonline.student",
            "presentation": "Dr.Mag. Renate Fellner-Färber\n"
        },
        {
            "id": 104272,
            "ctype": "campusonline.student",
            "presentation": "Martin Sulzbacher\n"
        },
        {
            "id": 104273,
            "ctype": "campusonline.student",
            "presentation": "Michael Schickmayr\n"
        },
        {
            "id": 104274,
            "ctype": "campusonline.student",
            "presentation": "Philipp List\n"
        },
        {
            "id": 104275,
            "ctype": "campusonline.student",
            "presentation": "Katharina Satzinger\n"
        },
        {
            "id": 104276,
            "ctype": "campusonline.student",
            "presentation": "Theresa Windischbauer\n"
        },
        {
            "id": 104277,
            "ctype": "campusonline.student",
            "presentation": "Martin Irani\n"
        },
        {
            "id": 104278,
            "ctype": "campusonline.student",
            "presentation": "Sefa Bakbak\n"
        },
        {
            "id": 104279,
            "ctype": "campusonline.student",
            "presentation": "Katayun Amouzeidi\n"
        },
        {
            "id": 104280,
            "ctype": "campusonline.student",
            "presentation": "Victoria Mitterbaur\n"
        },
        {
            "id": 104281,
            "ctype": "campusonline.student",
            "presentation": "Anna Wiesner\n"
        },
        {
            "id": 104282,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Rauch\n"
        },
        {
            "id": 104283,
            "ctype": "campusonline.student",
            "presentation": "Paul David Johannes Breitwieser\n"
        },
        {
            "id": 104284,
            "ctype": "campusonline.student",
            "presentation": "Lisa Radinger\n"
        },
        {
            "id": 104285,
            "ctype": "campusonline.student",
            "presentation": "Annika Dorfer\n"
        },
        {
            "id": 104286,
            "ctype": "campusonline.student",
            "presentation": "Olivia Daurer\n"
        },
        {
            "id": 104287,
            "ctype": "campusonline.student",
            "presentation": "Büsra Karakaya\n"
        },
        {
            "id": 104288,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Pühringer\n"
        },
        {
            "id": 104289,
            "ctype": "campusonline.student",
            "presentation": "Shpresim Ahmeti\n"
        },
        {
            "id": 104290,
            "ctype": "campusonline.student",
            "presentation": "Anika Baumgartner\n"
        }
    ]
}