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=16420
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=16440",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16400",
    "results": [
        {
            "id": 98582,
            "ctype": "campusonline.student",
            "presentation": "Daniela Pucher\n"
        },
        {
            "id": 98583,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Christian Groß\n"
        },
        {
            "id": 98584,
            "ctype": "campusonline.student",
            "presentation": "Maria Röhl\n"
        },
        {
            "id": 98585,
            "ctype": "campusonline.student",
            "presentation": "Sarah Victoria Wünscher\n"
        },
        {
            "id": 98586,
            "ctype": "campusonline.student",
            "presentation": "Xaver Horcicka\n"
        },
        {
            "id": 98587,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Leitgeb\n"
        },
        {
            "id": 98590,
            "ctype": "campusonline.student",
            "presentation": "Anna Achernig\n"
        },
        {
            "id": 98592,
            "ctype": "campusonline.student",
            "presentation": "Johanna Petritsch\n"
        },
        {
            "id": 98594,
            "ctype": "campusonline.student",
            "presentation": "Raffaela Miriam Planka\n"
        },
        {
            "id": 98595,
            "ctype": "campusonline.student",
            "presentation": "Reham Atallah\n"
        },
        {
            "id": 98596,
            "ctype": "campusonline.student",
            "presentation": "Eva Pommer\n"
        },
        {
            "id": 98597,
            "ctype": "campusonline.student",
            "presentation": "Teresa Magdalena Dorner\n"
        },
        {
            "id": 98598,
            "ctype": "campusonline.student",
            "presentation": "Dany Mady\n"
        },
        {
            "id": 98599,
            "ctype": "campusonline.student",
            "presentation": "Johannes Paul Blumauer\n"
        },
        {
            "id": 98600,
            "ctype": "campusonline.student",
            "presentation": "Philip Spriewald\n"
        },
        {
            "id": 98603,
            "ctype": "campusonline.student",
            "presentation": "Patricia Teresa Bachlechner-Radl\n"
        },
        {
            "id": 98604,
            "ctype": "campusonline.student",
            "presentation": "Anna Maria Walzl\n"
        },
        {
            "id": 98606,
            "ctype": "campusonline.student",
            "presentation": "Thomas Fröschl\n"
        },
        {
            "id": 98607,
            "ctype": "campusonline.student",
            "presentation": "Ahmed Abaira\n"
        },
        {
            "id": 98608,
            "ctype": "campusonline.student",
            "presentation": "Rosalie Hartmann\n"
        }
    ]
}