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=16240
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=16260",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16220",
    "results": [
        {
            "id": 98348,
            "ctype": "campusonline.student",
            "presentation": "Theresa Möstl\n"
        },
        {
            "id": 98349,
            "ctype": "campusonline.student",
            "presentation": "Franziska Andrea Monika Heitzinger\n"
        },
        {
            "id": 98350,
            "ctype": "campusonline.student",
            "presentation": "Meliha Mustafoska\n"
        },
        {
            "id": 98351,
            "ctype": "campusonline.student",
            "presentation": "Sophie Krenn\n"
        },
        {
            "id": 98352,
            "ctype": "campusonline.student",
            "presentation": "Marina Isabella Ertl\n"
        },
        {
            "id": 98353,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Pfannhauser\n"
        },
        {
            "id": 98354,
            "ctype": "campusonline.student",
            "presentation": "Bence Szemes\n"
        },
        {
            "id": 98355,
            "ctype": "campusonline.student",
            "presentation": "Nadine Schmidhuber\n"
        },
        {
            "id": 98357,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Bürgstein\n"
        },
        {
            "id": 98358,
            "ctype": "campusonline.student",
            "presentation": "Jennifer Rode\n"
        },
        {
            "id": 98359,
            "ctype": "campusonline.student",
            "presentation": "Sarah Grassl\n"
        },
        {
            "id": 98360,
            "ctype": "campusonline.student",
            "presentation": "Johanna Caroline Mayrhofer-Grüenbühl\n"
        },
        {
            "id": 98361,
            "ctype": "campusonline.student",
            "presentation": "Ivan Batljan\n"
        },
        {
            "id": 98362,
            "ctype": "campusonline.student",
            "presentation": "Laura Tegelhofer\n"
        },
        {
            "id": 98363,
            "ctype": "campusonline.student",
            "presentation": "Lisa Maria Höglinger\n"
        },
        {
            "id": 98364,
            "ctype": "campusonline.student",
            "presentation": "Lukas, Clemens Schneeberger\n"
        },
        {
            "id": 98365,
            "ctype": "campusonline.student",
            "presentation": "Julia Theil\n"
        },
        {
            "id": 98366,
            "ctype": "campusonline.student",
            "presentation": "Kristina Feuchter\n"
        },
        {
            "id": 98367,
            "ctype": "campusonline.student",
            "presentation": "Leonie Totschnig\n"
        },
        {
            "id": 98369,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Alexander Meyer\n"
        }
    ]
}