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=17420
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=17440",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17400",
    "results": [
        {
            "id": 101622,
            "ctype": "campusonline.student",
            "presentation": "Michael Fritz\n"
        },
        {
            "id": 101624,
            "ctype": "campusonline.student",
            "presentation": "Carina Anna Gangl-Ranzmaier\n"
        },
        {
            "id": 101626,
            "ctype": "campusonline.student",
            "presentation": "Julia Haller\n"
        },
        {
            "id": 101628,
            "ctype": "campusonline.student",
            "presentation": "Stephanie Kolm\n"
        },
        {
            "id": 101630,
            "ctype": "campusonline.student",
            "presentation": "Alina Kunihs\n"
        },
        {
            "id": 101632,
            "ctype": "campusonline.student",
            "presentation": "Steve Paul Kuntner\n"
        },
        {
            "id": 101638,
            "ctype": "campusonline.student",
            "presentation": "Theresa Maria Starlinger\n"
        },
        {
            "id": 101640,
            "ctype": "campusonline.student",
            "presentation": "Veronika Suchy\n"
        },
        {
            "id": 101642,
            "ctype": "campusonline.student",
            "presentation": "Peter Michael Szlagowski\n"
        },
        {
            "id": 101644,
            "ctype": "campusonline.student",
            "presentation": "Kathrin Sarah Tinhof\n"
        },
        {
            "id": 101646,
            "ctype": "campusonline.student",
            "presentation": "Lena Toljan\n"
        },
        {
            "id": 101648,
            "ctype": "campusonline.student",
            "presentation": "Bernhard Urbanek\n"
        },
        {
            "id": 101650,
            "ctype": "campusonline.student",
            "presentation": "Irma Vuković\n"
        },
        {
            "id": 101652,
            "ctype": "campusonline.student",
            "presentation": "Gabriel Chalhoub\n"
        },
        {
            "id": 101654,
            "ctype": "campusonline.student",
            "presentation": "Dr. med. dent. Navid Zehi\n"
        },
        {
            "id": 101664,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Simstich\n"
        },
        {
            "id": 101684,
            "ctype": "campusonline.student",
            "presentation": "Oleksandra Komarova\n"
        },
        {
            "id": 101696,
            "ctype": "campusonline.student",
            "presentation": "Samira Imeri\n"
        },
        {
            "id": 101698,
            "ctype": "campusonline.student",
            "presentation": "Barbara Petanjek\n"
        },
        {
            "id": 101745,
            "ctype": "campusonline.student",
            "presentation": "Sandra Ose\n"
        }
    ]
}