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=17620
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=17640",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17600",
    "results": [
        {
            "id": 102776,
            "ctype": "campusonline.student",
            "presentation": "Matthias Pfeifenberger\n"
        },
        {
            "id": 102778,
            "ctype": "campusonline.student",
            "presentation": "Alina Staikov\n"
        },
        {
            "id": 102786,
            "ctype": "campusonline.student",
            "presentation": "Verena Neuhold\n"
        },
        {
            "id": 102792,
            "ctype": "campusonline.student",
            "presentation": "Gerda Gudavičiūtė\n"
        },
        {
            "id": 102794,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Sophia Petschnak\n"
        },
        {
            "id": 102796,
            "ctype": "campusonline.student",
            "presentation": "Laura Schmidt\n"
        },
        {
            "id": 102801,
            "ctype": "campusonline.student",
            "presentation": "Anja Zimmel\n"
        },
        {
            "id": 102811,
            "ctype": "campusonline.student",
            "presentation": "Tomas Gomez Laverde\n"
        },
        {
            "id": 102815,
            "ctype": "campusonline.student",
            "presentation": "Cornelia-Abigail Pater\n"
        },
        {
            "id": 102825,
            "ctype": "campusonline.student",
            "presentation": "Natalie Strobl\n"
        },
        {
            "id": 102829,
            "ctype": "campusonline.student",
            "presentation": "Christopher Prieschl\n"
        },
        {
            "id": 102831,
            "ctype": "campusonline.student",
            "presentation": "Bianca Elisabeth Paulitsch\n"
        },
        {
            "id": 102833,
            "ctype": "campusonline.student",
            "presentation": "Michael Stamminger\n"
        },
        {
            "id": 102835,
            "ctype": "campusonline.student",
            "presentation": "Melanie Konrath\n"
        },
        {
            "id": 102841,
            "ctype": "campusonline.student",
            "presentation": "Bonginkosi Mthandeni Duma\n"
        },
        {
            "id": 102843,
            "ctype": "campusonline.student",
            "presentation": "Yvonne Gößler\n"
        },
        {
            "id": 102851,
            "ctype": "campusonline.student",
            "presentation": "Nathalie Lenz\n"
        },
        {
            "id": 102853,
            "ctype": "campusonline.student",
            "presentation": "Marie-Christine Fiala\n"
        },
        {
            "id": 102855,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Knaß\n"
        },
        {
            "id": 102859,
            "ctype": "campusonline.student",
            "presentation": "Simone Bednarek\n"
        }
    ]
}