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=15560
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=15580",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15540",
    "results": [
        {
            "id": 93327,
            "ctype": "campusonline.student",
            "presentation": "Jan Luca Struger\n"
        },
        {
            "id": 93328,
            "ctype": "campusonline.student",
            "presentation": "Adisa Beharic\n"
        },
        {
            "id": 93333,
            "ctype": "campusonline.student",
            "presentation": "Ulrike Barbara Feldbaumer\n"
        },
        {
            "id": 93334,
            "ctype": "campusonline.student",
            "presentation": "Lilly Zöhrer\n"
        },
        {
            "id": 93335,
            "ctype": "campusonline.student",
            "presentation": "Matthias Hofer\n"
        },
        {
            "id": 93336,
            "ctype": "campusonline.student",
            "presentation": "Anna Sophia Schindelwig\n"
        },
        {
            "id": 93337,
            "ctype": "campusonline.student",
            "presentation": "Michaela Gehmayr\n"
        },
        {
            "id": 93338,
            "ctype": "campusonline.student",
            "presentation": "Claudia Bartik\n"
        },
        {
            "id": 93342,
            "ctype": "campusonline.student",
            "presentation": "Seyedeh Nika Sarem\n"
        },
        {
            "id": 93343,
            "ctype": "campusonline.student",
            "presentation": "Alex Bernardi\n"
        },
        {
            "id": 93347,
            "ctype": "campusonline.student",
            "presentation": "Gregor Regenstein\n"
        },
        {
            "id": 93348,
            "ctype": "campusonline.student",
            "presentation": "Alexander Jakob Jandl\n"
        },
        {
            "id": 93350,
            "ctype": "campusonline.student",
            "presentation": "Daria Sophia Schlotmann\n"
        },
        {
            "id": 93351,
            "ctype": "campusonline.student",
            "presentation": "Laura Glachs\n"
        },
        {
            "id": 93353,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Elliot Rudlof\n"
        },
        {
            "id": 93358,
            "ctype": "campusonline.student",
            "presentation": "Teresa Hellinger\n"
        },
        {
            "id": 93366,
            "ctype": "campusonline.student",
            "presentation": "Soraya Marie Stiegner\n"
        },
        {
            "id": 93367,
            "ctype": "campusonline.student",
            "presentation": "Marlies Schanbacher\n"
        },
        {
            "id": 93373,
            "ctype": "campusonline.student",
            "presentation": "Kilian Mark Schramm\n"
        },
        {
            "id": 93375,
            "ctype": "campusonline.student",
            "presentation": "Claudia Arnreiter\n"
        }
    ]
}