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=15960
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=15980",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15940",
    "results": [
        {
            "id": 96139,
            "ctype": "campusonline.student",
            "presentation": "Pierre Maximilian Eckhard\n"
        },
        {
            "id": 96141,
            "ctype": "campusonline.student",
            "presentation": "Valentina Egger\n"
        },
        {
            "id": 96143,
            "ctype": "campusonline.student",
            "presentation": "Manuel Tiefenthaler\n"
        },
        {
            "id": 96144,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Krainer\n"
        },
        {
            "id": 96148,
            "ctype": "campusonline.student",
            "presentation": "Thatiane Gruber\n"
        },
        {
            "id": 96150,
            "ctype": "campusonline.student",
            "presentation": "Mischa Deisel\n"
        },
        {
            "id": 96152,
            "ctype": "campusonline.student",
            "presentation": "Lena Alexandra Kienzl\n"
        },
        {
            "id": 96153,
            "ctype": "campusonline.student",
            "presentation": "Jan Schafmeister\n"
        },
        {
            "id": 96154,
            "ctype": "campusonline.student",
            "presentation": "Mechthild Aloisia Lagger\n"
        },
        {
            "id": 96155,
            "ctype": "campusonline.student",
            "presentation": "Teresa Reichmann\n"
        },
        {
            "id": 96156,
            "ctype": "campusonline.student",
            "presentation": "Vinzenz Supp\n"
        },
        {
            "id": 96162,
            "ctype": "campusonline.student",
            "presentation": "Katharina Hinterhölzl\n"
        },
        {
            "id": 96165,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Siebenhofer\n"
        },
        {
            "id": 96167,
            "ctype": "campusonline.student",
            "presentation": "Lena Hiendl\n"
        },
        {
            "id": 96170,
            "ctype": "campusonline.student",
            "presentation": "Tobias Remschmidt\n"
        },
        {
            "id": 96171,
            "ctype": "campusonline.student",
            "presentation": "Harro Eduard Maug\n"
        },
        {
            "id": 96178,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Aspalter\n"
        },
        {
            "id": 96181,
            "ctype": "campusonline.student",
            "presentation": "Sophie Langeder\n"
        },
        {
            "id": 96200,
            "ctype": "campusonline.student",
            "presentation": "Simon Johannes Strohmeier\n"
        },
        {
            "id": 96201,
            "ctype": "campusonline.student",
            "presentation": "Michaela Elisabeth Lukesch\n"
        }
    ]
}