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=16440
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=16460",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16420",
    "results": [
        {
            "id": 98611,
            "ctype": "campusonline.student",
            "presentation": "Luana Zoll\n"
        },
        {
            "id": 98612,
            "ctype": "campusonline.student",
            "presentation": "Clemens Jellen\n"
        },
        {
            "id": 98613,
            "ctype": "campusonline.student",
            "presentation": "Florian Hofer\n"
        },
        {
            "id": 98615,
            "ctype": "campusonline.student",
            "presentation": "Carl Luis Mastellotto\n"
        },
        {
            "id": 98616,
            "ctype": "campusonline.student",
            "presentation": "Regina Emilie Kalbfell\n"
        },
        {
            "id": 98617,
            "ctype": "campusonline.student",
            "presentation": "Rafael Francisco Regnet da Cruz\n"
        },
        {
            "id": 98618,
            "ctype": "campusonline.student",
            "presentation": "Manuela Kliment\n"
        },
        {
            "id": 98621,
            "ctype": "campusonline.student",
            "presentation": "Silke Irina Smolak\n"
        },
        {
            "id": 98624,
            "ctype": "campusonline.student",
            "presentation": "Stefan Winter\n"
        },
        {
            "id": 98626,
            "ctype": "campusonline.student",
            "presentation": "Hannah Marka\n"
        },
        {
            "id": 98628,
            "ctype": "campusonline.student",
            "presentation": "Tobias Sattler\n"
        },
        {
            "id": 98629,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Christina Pfennich\n"
        },
        {
            "id": 98630,
            "ctype": "campusonline.student",
            "presentation": "Bastian Wittmann\n"
        },
        {
            "id": 98631,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Wildbacher\n"
        },
        {
            "id": 98632,
            "ctype": "campusonline.student",
            "presentation": "Melina Urania Köhler\n"
        },
        {
            "id": 98633,
            "ctype": "campusonline.student",
            "presentation": "Sabrina Hinkel\n"
        },
        {
            "id": 98634,
            "ctype": "campusonline.student",
            "presentation": "Martin Narrath\n"
        },
        {
            "id": 98635,
            "ctype": "campusonline.student",
            "presentation": "Sabrina Oltean\n"
        },
        {
            "id": 98636,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Hintermann\n"
        },
        {
            "id": 98637,
            "ctype": "campusonline.student",
            "presentation": "Katharina Johanna Weißenböck\n"
        }
    ]
}