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=16340
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=16360",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16320",
    "results": [
        {
            "id": 98479,
            "ctype": "campusonline.student",
            "presentation": "Florian Stifter\n"
        },
        {
            "id": 98480,
            "ctype": "campusonline.student",
            "presentation": "Karl Vittinghoff\n"
        },
        {
            "id": 98482,
            "ctype": "campusonline.student",
            "presentation": "Anna-Maria Ellersdorfer\n"
        },
        {
            "id": 98483,
            "ctype": "campusonline.student",
            "presentation": "Julia Resch\n"
        },
        {
            "id": 98484,
            "ctype": "campusonline.student",
            "presentation": "Daniel Johannes Dür\n"
        },
        {
            "id": 98485,
            "ctype": "campusonline.student",
            "presentation": "Isabell Martinz\n"
        },
        {
            "id": 98486,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Meir\n"
        },
        {
            "id": 98488,
            "ctype": "campusonline.student",
            "presentation": "Raphaela Brigitte Gabriele Ruth Sorgnitt\n"
        },
        {
            "id": 98490,
            "ctype": "campusonline.student",
            "presentation": "Vanessa Holy\n"
        },
        {
            "id": 98491,
            "ctype": "campusonline.student",
            "presentation": "Sophie Auer-Welsbach\n"
        },
        {
            "id": 98492,
            "ctype": "campusonline.student",
            "presentation": "Christian Klare\n"
        },
        {
            "id": 98493,
            "ctype": "campusonline.student",
            "presentation": "Andreas Gebhart\n"
        },
        {
            "id": 98495,
            "ctype": "campusonline.student",
            "presentation": "Anja Reischl\n"
        },
        {
            "id": 98496,
            "ctype": "campusonline.student",
            "presentation": "Fabienne Tews\n"
        },
        {
            "id": 98498,
            "ctype": "campusonline.student",
            "presentation": "Alina Irimia\n"
        },
        {
            "id": 98499,
            "ctype": "campusonline.student",
            "presentation": "Konstantin Sowa\n"
        },
        {
            "id": 98500,
            "ctype": "campusonline.student",
            "presentation": "Katharina Ruth Pagotto Betzler\n"
        },
        {
            "id": 98501,
            "ctype": "campusonline.student",
            "presentation": "Jenny Fantitsch\n"
        },
        {
            "id": 98502,
            "ctype": "campusonline.student",
            "presentation": "Lena Obergottsberger\n"
        },
        {
            "id": 98504,
            "ctype": "campusonline.student",
            "presentation": "Johanna Resch\n"
        }
    ]
}