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=16860
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=16880",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16840",
    "results": [
        {
            "id": 100094,
            "ctype": "campusonline.student",
            "presentation": "Marcel Knaller\n"
        },
        {
            "id": 100096,
            "ctype": "campusonline.student",
            "presentation": "Clara Rosina Fessl\n"
        },
        {
            "id": 100099,
            "ctype": "campusonline.student",
            "presentation": "Jasper Julius Ralph Schmitz\n"
        },
        {
            "id": 100101,
            "ctype": "campusonline.student",
            "presentation": "Daniel Eckhart\n"
        },
        {
            "id": 100103,
            "ctype": "campusonline.student",
            "presentation": "Miriam Kauran\n"
        },
        {
            "id": 100105,
            "ctype": "campusonline.student",
            "presentation": "Jakob Wernig\n"
        },
        {
            "id": 100109,
            "ctype": "campusonline.student",
            "presentation": "Daphne Amely Warzecha\n"
        },
        {
            "id": 100111,
            "ctype": "campusonline.student",
            "presentation": "Nikolaus Watzinger\n"
        },
        {
            "id": 100113,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Schwarzl\n"
        },
        {
            "id": 100115,
            "ctype": "campusonline.student",
            "presentation": "Alysha Miklauc\n"
        },
        {
            "id": 100117,
            "ctype": "campusonline.student",
            "presentation": "Henrik Hulla\n"
        },
        {
            "id": 100119,
            "ctype": "campusonline.student",
            "presentation": "Elias Payam\n"
        },
        {
            "id": 100121,
            "ctype": "campusonline.student",
            "presentation": "Jannis Christian Bialas\n"
        },
        {
            "id": 100123,
            "ctype": "campusonline.student",
            "presentation": "Hanna Henzinger\n"
        },
        {
            "id": 100125,
            "ctype": "campusonline.student",
            "presentation": "Nathalie Naderi Khizri\n"
        },
        {
            "id": 100127,
            "ctype": "campusonline.student",
            "presentation": "Leon Peisser\n"
        },
        {
            "id": 100130,
            "ctype": "campusonline.student",
            "presentation": "Felix Roland Festin\n"
        },
        {
            "id": 100132,
            "ctype": "campusonline.student",
            "presentation": "Constantin Alexander Hegen\n"
        },
        {
            "id": 100133,
            "ctype": "campusonline.student",
            "presentation": "Helena Palli\n"
        },
        {
            "id": 100135,
            "ctype": "campusonline.student",
            "presentation": "Irma Rathofer\n"
        }
    ]
}