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=15600
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=15620",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15580",
    "results": [
        {
            "id": 93463,
            "ctype": "campusonline.student",
            "presentation": "Mashal Mohammad Hamidi\n"
        },
        {
            "id": 93468,
            "ctype": "campusonline.student",
            "presentation": "Stefanie Koller\n"
        },
        {
            "id": 93474,
            "ctype": "campusonline.student",
            "presentation": "Julia Marlene Buchberger\n"
        },
        {
            "id": 93478,
            "ctype": "campusonline.student",
            "presentation": "Thomas Marinitsch\n"
        },
        {
            "id": 93487,
            "ctype": "campusonline.student",
            "presentation": "Marie-Christina Mayer\n"
        },
        {
            "id": 93488,
            "ctype": "campusonline.student",
            "presentation": "Marius Alexander Waltensdorfer\n"
        },
        {
            "id": 93489,
            "ctype": "campusonline.student",
            "presentation": "Omar Meslmani\n"
        },
        {
            "id": 93490,
            "ctype": "campusonline.student",
            "presentation": "Johannes Manuel Oettle\n"
        },
        {
            "id": 93493,
            "ctype": "campusonline.student",
            "presentation": "Felix Matthias Schultschik\n"
        },
        {
            "id": 93497,
            "ctype": "campusonline.student",
            "presentation": "Agnes Sophia Mayr\n"
        },
        {
            "id": 93504,
            "ctype": "campusonline.student",
            "presentation": "Dinah Mühlbacher\n"
        },
        {
            "id": 93514,
            "ctype": "campusonline.student",
            "presentation": "Valerie Steiner\n"
        },
        {
            "id": 93536,
            "ctype": "campusonline.student",
            "presentation": "Julia Cara Beldinger\n"
        },
        {
            "id": 93553,
            "ctype": "campusonline.student",
            "presentation": "Damir Polic\n"
        },
        {
            "id": 93563,
            "ctype": "campusonline.student",
            "presentation": "Sori Kim\n"
        },
        {
            "id": 93576,
            "ctype": "campusonline.student",
            "presentation": "Sandro Stojanović\n"
        },
        {
            "id": 93593,
            "ctype": "campusonline.student",
            "presentation": "Helena Altenhofer\n"
        },
        {
            "id": 93603,
            "ctype": "campusonline.student",
            "presentation": "Precious Chiebonam Nnebedum\n"
        },
        {
            "id": 93607,
            "ctype": "campusonline.student",
            "presentation": "Nina Thonhofer\n"
        },
        {
            "id": 93640,
            "ctype": "campusonline.student",
            "presentation": "Vera Lambauer\n"
        }
    ]
}