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=17040
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=17060",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17020",
    "results": [
        {
            "id": 100551,
            "ctype": "campusonline.student",
            "presentation": "Immanuel Laszloffy\n"
        },
        {
            "id": 100553,
            "ctype": "campusonline.student",
            "presentation": "Lisa Maria Vock\n"
        },
        {
            "id": 100555,
            "ctype": "campusonline.student",
            "presentation": "Sandra Bergthaler\n"
        },
        {
            "id": 100559,
            "ctype": "campusonline.student",
            "presentation": "Estelle Lunderstädt\n"
        },
        {
            "id": 100566,
            "ctype": "campusonline.student",
            "presentation": "Jana Mauritsch\n"
        },
        {
            "id": 100570,
            "ctype": "campusonline.student",
            "presentation": "Philip Marc Fischer\n"
        },
        {
            "id": 100574,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Zauner\n"
        },
        {
            "id": 100578,
            "ctype": "campusonline.student",
            "presentation": "Vanessa Sackl\n"
        },
        {
            "id": 100580,
            "ctype": "campusonline.student",
            "presentation": "Dafne Vecchiet\n"
        },
        {
            "id": 100582,
            "ctype": "campusonline.student",
            "presentation": "Vjosa Bytyqi\n"
        },
        {
            "id": 100585,
            "ctype": "campusonline.student",
            "presentation": "Markus Gschwentner\n"
        },
        {
            "id": 100589,
            "ctype": "campusonline.student",
            "presentation": "Angelika Schröttner\n"
        },
        {
            "id": 100591,
            "ctype": "campusonline.student",
            "presentation": "Amra Pasic\n"
        },
        {
            "id": 100595,
            "ctype": "campusonline.student",
            "presentation": "Richard Belciug\n"
        },
        {
            "id": 100601,
            "ctype": "campusonline.student",
            "presentation": "Anja Maria Fasching\n"
        },
        {
            "id": 100607,
            "ctype": "campusonline.student",
            "presentation": "Julian Stadler\n"
        },
        {
            "id": 100611,
            "ctype": "campusonline.student",
            "presentation": "Hanna Elisabeth Kronsteiner\n"
        },
        {
            "id": 100616,
            "ctype": "campusonline.student",
            "presentation": "Tobias Veratschnig\n"
        },
        {
            "id": 100618,
            "ctype": "campusonline.student",
            "presentation": "Katharina Scheikl\n"
        },
        {
            "id": 100620,
            "ctype": "campusonline.student",
            "presentation": "Amina Mekić\n"
        }
    ]
}