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=17000
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=17020",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16980",
    "results": [
        {
            "id": 100449,
            "ctype": "campusonline.student",
            "presentation": "Lena Neuhold\n"
        },
        {
            "id": 100451,
            "ctype": "campusonline.student",
            "presentation": "Laura Gruber\n"
        },
        {
            "id": 100453,
            "ctype": "campusonline.student",
            "presentation": "Agnes Schönbacher\n"
        },
        {
            "id": 100455,
            "ctype": "campusonline.student",
            "presentation": "Nayantara Kumar\n"
        },
        {
            "id": 100457,
            "ctype": "campusonline.student",
            "presentation": "Nadine Eva Laschober\n"
        },
        {
            "id": 100459,
            "ctype": "campusonline.student",
            "presentation": "Martina Frank\n"
        },
        {
            "id": 100461,
            "ctype": "campusonline.student",
            "presentation": "Benard Aliwa\n"
        },
        {
            "id": 100465,
            "ctype": "campusonline.student",
            "presentation": "Melanie Binder\n"
        },
        {
            "id": 100467,
            "ctype": "campusonline.student",
            "presentation": "Eva Maria Guttenbrunner\n"
        },
        {
            "id": 100469,
            "ctype": "campusonline.student",
            "presentation": "Celine Fischbacher\n"
        },
        {
            "id": 100473,
            "ctype": "campusonline.student",
            "presentation": "Alexander Peitler\n"
        },
        {
            "id": 100475,
            "ctype": "campusonline.student",
            "presentation": "Theresa Bierbauer\n"
        },
        {
            "id": 100481,
            "ctype": "campusonline.student",
            "presentation": "Sandro Schifferl\n"
        },
        {
            "id": 100483,
            "ctype": "campusonline.student",
            "presentation": "Sophie Anna Steiner\n"
        },
        {
            "id": 100485,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Anastasia Kipper\n"
        },
        {
            "id": 100487,
            "ctype": "campusonline.student",
            "presentation": "Caroline Glantschnig\n"
        },
        {
            "id": 100492,
            "ctype": "campusonline.student",
            "presentation": "Swana Schünemann\n"
        },
        {
            "id": 100494,
            "ctype": "campusonline.student",
            "presentation": "Zita Späth\n"
        },
        {
            "id": 100496,
            "ctype": "campusonline.student",
            "presentation": "Leonardo Kucher\n"
        },
        {
            "id": 100499,
            "ctype": "campusonline.student",
            "presentation": "Jonas Höller\n"
        }
    ]
}