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=17140
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=17160",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17120",
    "results": [
        {
            "id": 100860,
            "ctype": "campusonline.student",
            "presentation": "Theresa Tiefenthaller\n"
        },
        {
            "id": 100864,
            "ctype": "campusonline.student",
            "presentation": "Teresa Helm\n"
        },
        {
            "id": 100866,
            "ctype": "campusonline.student",
            "presentation": "Mathias Kern\n"
        },
        {
            "id": 100878,
            "ctype": "campusonline.student",
            "presentation": "Philipp Sebastian Hieber\n"
        },
        {
            "id": 100884,
            "ctype": "campusonline.student",
            "presentation": "Judith Marie Lauber\n"
        },
        {
            "id": 100888,
            "ctype": "campusonline.student",
            "presentation": "Christopher Ole Muhs\n"
        },
        {
            "id": 100890,
            "ctype": "campusonline.student",
            "presentation": "Anna Marochkin\n"
        },
        {
            "id": 100896,
            "ctype": "campusonline.student",
            "presentation": "Hannah Stefanie Wlattnig\n"
        },
        {
            "id": 100898,
            "ctype": "campusonline.student",
            "presentation": "Sonja Öhner\n"
        },
        {
            "id": 100900,
            "ctype": "campusonline.student",
            "presentation": "Mathias Hirschmann\n"
        },
        {
            "id": 100904,
            "ctype": "campusonline.student",
            "presentation": "Veronika Roswitha Schiedrich\n"
        },
        {
            "id": 100908,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Alexander Buzath\n"
        },
        {
            "id": 100910,
            "ctype": "campusonline.student",
            "presentation": "Esmeralda Melissa Raphaela Ticona Schülli\n"
        },
        {
            "id": 100915,
            "ctype": "campusonline.student",
            "presentation": "Valérie Catharina Rose Taffertshofer\n"
        },
        {
            "id": 100919,
            "ctype": "campusonline.student",
            "presentation": "Julia Happe\n"
        },
        {
            "id": 100921,
            "ctype": "campusonline.student",
            "presentation": "Jonathan Molzahn\n"
        },
        {
            "id": 100923,
            "ctype": "campusonline.student",
            "presentation": "Sarah Sinko-Leitgeb\n"
        },
        {
            "id": 100927,
            "ctype": "campusonline.student",
            "presentation": "Elena Therese Saringer\n"
        },
        {
            "id": 100929,
            "ctype": "campusonline.student",
            "presentation": "Jakob Staudinger\n"
        },
        {
            "id": 100937,
            "ctype": "campusonline.student",
            "presentation": "Samuel Sinz\n"
        }
    ]
}