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=15300
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=15320",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15280",
    "results": [
        {
            "id": 92208,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Lukas Dietmar Koch\n"
        },
        {
            "id": 92226,
            "ctype": "campusonline.student",
            "presentation": "Suzana Bračič\n"
        },
        {
            "id": 92273,
            "ctype": "campusonline.student",
            "presentation": "Andreas Dorn\n"
        },
        {
            "id": 92295,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Tina Nazerani Hooshmand\n"
        },
        {
            "id": 92304,
            "ctype": "campusonline.student",
            "presentation": "Rene Pilz\n"
        },
        {
            "id": 92305,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Leyla Schweiger\n"
        },
        {
            "id": 92359,
            "ctype": "campusonline.student",
            "presentation": "Karin Boden\n"
        },
        {
            "id": 92438,
            "ctype": "campusonline.student",
            "presentation": "Agnes Anna Mooslechner\n"
        },
        {
            "id": 92447,
            "ctype": "campusonline.student",
            "presentation": "Silvia Groiss\n"
        },
        {
            "id": 92448,
            "ctype": "campusonline.student",
            "presentation": "Margit Neger\n"
        },
        {
            "id": 92475,
            "ctype": "campusonline.student",
            "presentation": "Theresa Helena Benezeder\n"
        },
        {
            "id": 92484,
            "ctype": "campusonline.student",
            "presentation": "Dott. mag. Tommaso Sconocchia\n"
        },
        {
            "id": 92487,
            "ctype": "campusonline.student",
            "presentation": "Victoria Zyulina\n"
        },
        {
            "id": 92556,
            "ctype": "campusonline.student",
            "presentation": "Jürgen Prasch\n"
        },
        {
            "id": 92589,
            "ctype": "campusonline.student",
            "presentation": "Vera-Lise Katharina Ihm\n"
        },
        {
            "id": 92591,
            "ctype": "campusonline.student",
            "presentation": "Lena Mayer\n"
        },
        {
            "id": 92592,
            "ctype": "campusonline.student",
            "presentation": "Julia Stangl\n"
        },
        {
            "id": 92596,
            "ctype": "campusonline.student",
            "presentation": "Christoph Peter Sternad\n"
        },
        {
            "id": 92597,
            "ctype": "campusonline.student",
            "presentation": "Daniela Otto\n"
        },
        {
            "id": 92600,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Zarfl\n"
        }
    ]
}