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=18400
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=18420",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18380",
    "results": [
        {
            "id": 104677,
            "ctype": "campusonline.student",
            "presentation": "Isabella Prietl\n"
        },
        {
            "id": 104679,
            "ctype": "campusonline.student",
            "presentation": "Imam Laknizi\n"
        },
        {
            "id": 104683,
            "ctype": "campusonline.student",
            "presentation": "Julia Polacik\n"
        },
        {
            "id": 104689,
            "ctype": "campusonline.student",
            "presentation": "Marian Yan Lemyk\n"
        },
        {
            "id": 104691,
            "ctype": "campusonline.student",
            "presentation": "Sascha Erwin Christian Kreutz\n"
        },
        {
            "id": 104694,
            "ctype": "campusonline.student",
            "presentation": "Christina Isabella Wlattnig\n"
        },
        {
            "id": 104696,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Christine Chung\n"
        },
        {
            "id": 104698,
            "ctype": "campusonline.student",
            "presentation": "Lisa-Marie Schlag\n"
        },
        {
            "id": 104702,
            "ctype": "campusonline.student",
            "presentation": "Katharina Gesine Brandt\n"
        },
        {
            "id": 104704,
            "ctype": "campusonline.student",
            "presentation": "Bettina Maria Höfler\n"
        },
        {
            "id": 104710,
            "ctype": "campusonline.student",
            "presentation": "Marko Stijic\n"
        },
        {
            "id": 104712,
            "ctype": "campusonline.student",
            "presentation": "Divya Guntur\n"
        },
        {
            "id": 104718,
            "ctype": "campusonline.student",
            "presentation": "Mario Günter Raggl\n"
        },
        {
            "id": 104720,
            "ctype": "campusonline.student",
            "presentation": "Julia Zollner\n"
        },
        {
            "id": 104725,
            "ctype": "campusonline.student",
            "presentation": "Kyrylo Vynohrad\n"
        },
        {
            "id": 104727,
            "ctype": "campusonline.student",
            "presentation": "Samira Gholami Ghareh Bolagh\n"
        },
        {
            "id": 104729,
            "ctype": "campusonline.student",
            "presentation": "Anna Tertychna\n"
        },
        {
            "id": 104733,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Lucio Filelfi\n"
        },
        {
            "id": 104739,
            "ctype": "campusonline.student",
            "presentation": "Lena Christina Salomé Littke\n"
        },
        {
            "id": 104741,
            "ctype": "campusonline.student",
            "presentation": "Maria Fleischer\n"
        }
    ]
}