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=18180
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=18200",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18160",
    "results": [
        {
            "id": 104234,
            "ctype": "campusonline.student",
            "presentation": "Mario Luck\n"
        },
        {
            "id": 104235,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Derntl\n"
        },
        {
            "id": 104236,
            "ctype": "campusonline.student",
            "presentation": "Maria Bodingbauer\n"
        },
        {
            "id": 104237,
            "ctype": "campusonline.student",
            "presentation": "Carina Wickgruber\n"
        },
        {
            "id": 104238,
            "ctype": "campusonline.student",
            "presentation": "Paul Hörantner\n"
        },
        {
            "id": 104239,
            "ctype": "campusonline.student",
            "presentation": "Dennis Jenner\n"
        },
        {
            "id": 104240,
            "ctype": "campusonline.student",
            "presentation": "Michael Rührnößl\n"
        },
        {
            "id": 104241,
            "ctype": "campusonline.student",
            "presentation": "Quynh Nguyen\n"
        },
        {
            "id": 104242,
            "ctype": "campusonline.student",
            "presentation": "Leonid Lazovski\n"
        },
        {
            "id": 104243,
            "ctype": "campusonline.student",
            "presentation": "Cédric Donati\n"
        },
        {
            "id": 104247,
            "ctype": "campusonline.student",
            "presentation": "Ingrid Stefanie Fiedler\n"
        },
        {
            "id": 104255,
            "ctype": "campusonline.student",
            "presentation": "Nesa Magdalena Marti\n"
        },
        {
            "id": 104257,
            "ctype": "campusonline.student",
            "presentation": "dr Anna Diana Michalska-Falkowska\n"
        },
        {
            "id": 104263,
            "ctype": "campusonline.student",
            "presentation": "Lisa Winter\n"
        },
        {
            "id": 104265,
            "ctype": "campusonline.student",
            "presentation": "Jan Brückner\n"
        },
        {
            "id": 104266,
            "ctype": "campusonline.student",
            "presentation": "Victoria Trauner\n"
        },
        {
            "id": 104267,
            "ctype": "campusonline.student",
            "presentation": "Sarah Egger\n"
        },
        {
            "id": 104268,
            "ctype": "campusonline.student",
            "presentation": "Lukas Kurz\n"
        },
        {
            "id": 104269,
            "ctype": "campusonline.student",
            "presentation": "Ulrike Bock\n"
        },
        {
            "id": 104270,
            "ctype": "campusonline.student",
            "presentation": "Jakob Oberfichtner\n"
        }
    ]
}