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=16560
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=16580",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16540",
    "results": [
        {
            "id": 98897,
            "ctype": "campusonline.student",
            "presentation": "Eric Maria Simon Roland Blinzler\n"
        },
        {
            "id": 98898,
            "ctype": "campusonline.student",
            "presentation": "Fabian Briel\n"
        },
        {
            "id": 98899,
            "ctype": "campusonline.student",
            "presentation": "Ema Cada\n"
        },
        {
            "id": 98900,
            "ctype": "campusonline.student",
            "presentation": "Arda Cakir\n"
        },
        {
            "id": 98901,
            "ctype": "campusonline.student",
            "presentation": "Denis Tobias Caspersen\n"
        },
        {
            "id": 98902,
            "ctype": "campusonline.student",
            "presentation": "Stefan Thomas Dannerbauer\n"
        },
        {
            "id": 98903,
            "ctype": "campusonline.student",
            "presentation": "Elias Daxecker\n"
        },
        {
            "id": 98904,
            "ctype": "campusonline.student",
            "presentation": "David Dinh\n"
        },
        {
            "id": 98905,
            "ctype": "campusonline.student",
            "presentation": "Ute Donaubauer\n"
        },
        {
            "id": 98906,
            "ctype": "campusonline.student",
            "presentation": "Sarah Denise Dreer\n"
        },
        {
            "id": 98907,
            "ctype": "campusonline.student",
            "presentation": "Lisa Edlinger\n"
        },
        {
            "id": 98908,
            "ctype": "campusonline.student",
            "presentation": "Edith Eicher\n"
        },
        {
            "id": 98909,
            "ctype": "campusonline.student",
            "presentation": "Corbinian Georg Norbert Englisch\n"
        },
        {
            "id": 98910,
            "ctype": "campusonline.student",
            "presentation": "Moritz Fehringer\n"
        },
        {
            "id": 98911,
            "ctype": "campusonline.student",
            "presentation": "Sandra Feldler\n"
        },
        {
            "id": 98912,
            "ctype": "campusonline.student",
            "presentation": "Valentin Fischer\n"
        },
        {
            "id": 98913,
            "ctype": "campusonline.student",
            "presentation": "Katrin Freller\n"
        },
        {
            "id": 98914,
            "ctype": "campusonline.student",
            "presentation": "Clara Fruhmann\n"
        },
        {
            "id": 98915,
            "ctype": "campusonline.student",
            "presentation": "Valerie Marlon Frühwald\n"
        },
        {
            "id": 98916,
            "ctype": "campusonline.student",
            "presentation": "Pascal Christoph Gaffl\n"
        }
    ]
}