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=15640
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=15660",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15620",
    "results": [
        {
            "id": 93831,
            "ctype": "campusonline.student",
            "presentation": "Adna Ajanovic\n"
        },
        {
            "id": 93834,
            "ctype": "campusonline.student",
            "presentation": "Juliana Ram\n"
        },
        {
            "id": 93835,
            "ctype": "campusonline.student",
            "presentation": "Juliana Kroath\n"
        },
        {
            "id": 93838,
            "ctype": "campusonline.student",
            "presentation": "Laura Hannl\n"
        },
        {
            "id": 93843,
            "ctype": "campusonline.student",
            "presentation": "Gabriele Gschwendtner\n"
        },
        {
            "id": 93847,
            "ctype": "campusonline.student",
            "presentation": "Anna Helena Rosa Mayr\n"
        },
        {
            "id": 93853,
            "ctype": "campusonline.student",
            "presentation": "Peter Grechenig\n"
        },
        {
            "id": 93855,
            "ctype": "campusonline.student",
            "presentation": "Marc Müller\n"
        },
        {
            "id": 93857,
            "ctype": "campusonline.student",
            "presentation": "Esved Kurt\n"
        },
        {
            "id": 93860,
            "ctype": "campusonline.student",
            "presentation": "Aida Beganovic\n"
        },
        {
            "id": 93862,
            "ctype": "campusonline.student",
            "presentation": "Victoria Ravn\n"
        },
        {
            "id": 93867,
            "ctype": "campusonline.student",
            "presentation": "Julia Sophie Pomberger\n"
        },
        {
            "id": 93870,
            "ctype": "campusonline.student",
            "presentation": "Niklas Eduard Werner Pfeiler\n"
        },
        {
            "id": 93874,
            "ctype": "campusonline.student",
            "presentation": "Denise Stübl\n"
        },
        {
            "id": 93875,
            "ctype": "campusonline.student",
            "presentation": "Birgit Steiner\n"
        },
        {
            "id": 93876,
            "ctype": "campusonline.student",
            "presentation": "Marco Breiteneder\n"
        },
        {
            "id": 93879,
            "ctype": "campusonline.student",
            "presentation": "Isabella Steinkogler\n"
        },
        {
            "id": 93883,
            "ctype": "campusonline.student",
            "presentation": "Thomas Maximilian Müller\n"
        },
        {
            "id": 93898,
            "ctype": "campusonline.student",
            "presentation": "Alexander Bründl\n"
        },
        {
            "id": 93900,
            "ctype": "campusonline.student",
            "presentation": "Daniel Gerhard Pfannhauser\n"
        }
    ]
}