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=18300
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=18320",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18280",
    "results": [
        {
            "id": 104407,
            "ctype": "campusonline.student",
            "presentation": "Renzo Emanuel Boccalini\n"
        },
        {
            "id": 104409,
            "ctype": "campusonline.student",
            "presentation": "Daniela Seidl\n"
        },
        {
            "id": 104411,
            "ctype": "campusonline.student",
            "presentation": "Lukas Kaufmann\n"
        },
        {
            "id": 104413,
            "ctype": "campusonline.student",
            "presentation": "Valerie Götzinger\n"
        },
        {
            "id": 104415,
            "ctype": "campusonline.student",
            "presentation": "Sonja Friedl\n"
        },
        {
            "id": 104422,
            "ctype": "campusonline.student",
            "presentation": "Katrin Stadler\n"
        },
        {
            "id": 104423,
            "ctype": "campusonline.student",
            "presentation": "Julia Messmer\n"
        },
        {
            "id": 104424,
            "ctype": "campusonline.student",
            "presentation": "Julia Schmidt\n"
        },
        {
            "id": 104425,
            "ctype": "campusonline.student",
            "presentation": "Johanna Vogetseder\n"
        },
        {
            "id": 104426,
            "ctype": "campusonline.student",
            "presentation": "Sonya Miut\n"
        },
        {
            "id": 104427,
            "ctype": "campusonline.student",
            "presentation": "Jan-Maria Fischer\n"
        },
        {
            "id": 104428,
            "ctype": "campusonline.student",
            "presentation": "Alicia Gröschel\n"
        },
        {
            "id": 104434,
            "ctype": "campusonline.student",
            "presentation": "Kathrin Dirnberger\n"
        },
        {
            "id": 104436,
            "ctype": "campusonline.student",
            "presentation": "Sabrina Ofner\n"
        },
        {
            "id": 104438,
            "ctype": "campusonline.student",
            "presentation": "Elisa Pauline Slabik\n"
        },
        {
            "id": 104440,
            "ctype": "campusonline.student",
            "presentation": "Daniela Neubauer\n"
        },
        {
            "id": 104444,
            "ctype": "campusonline.student",
            "presentation": "Jacqueline Kahlpacher\n"
        },
        {
            "id": 104446,
            "ctype": "campusonline.student",
            "presentation": "Dominique Lang-Marliot\n"
        },
        {
            "id": 104448,
            "ctype": "campusonline.student",
            "presentation": "Sabrina Evelyn Zötsch\n"
        },
        {
            "id": 104450,
            "ctype": "campusonline.student",
            "presentation": "Matthäus Ignatius Lagger\n"
        }
    ]
}