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=15880
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=15900",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15860",
    "results": [
        {
            "id": 95804,
            "ctype": "campusonline.student",
            "presentation": "Markus Scheiflinger\n"
        },
        {
            "id": 95806,
            "ctype": "campusonline.student",
            "presentation": "Philipp Zaininger\n"
        },
        {
            "id": 95807,
            "ctype": "campusonline.student",
            "presentation": "Laura Marlen Meinl\n"
        },
        {
            "id": 95808,
            "ctype": "campusonline.student",
            "presentation": "Julia Rebecca Korting\n"
        },
        {
            "id": 95809,
            "ctype": "campusonline.student",
            "presentation": "Lena Elisabeth Schneider\n"
        },
        {
            "id": 95810,
            "ctype": "campusonline.student",
            "presentation": "Carlotta Elisabeth Mosch\n"
        },
        {
            "id": 95812,
            "ctype": "campusonline.student",
            "presentation": "Tamara Sophia Sand\n"
        },
        {
            "id": 95852,
            "ctype": "campusonline.student",
            "presentation": "Bennet Melcher\n"
        },
        {
            "id": 95855,
            "ctype": "campusonline.student",
            "presentation": "Joseph Bela Bukovics\n"
        },
        {
            "id": 95856,
            "ctype": "campusonline.student",
            "presentation": "Nora Maria Pinz\n"
        },
        {
            "id": 95857,
            "ctype": "campusonline.student",
            "presentation": "Angelika Kogler\n"
        },
        {
            "id": 95858,
            "ctype": "campusonline.student",
            "presentation": "Alexander Draschl\n"
        },
        {
            "id": 95860,
            "ctype": "campusonline.student",
            "presentation": "Margarete Anna Neururer\n"
        },
        {
            "id": 95861,
            "ctype": "campusonline.student",
            "presentation": "Clarissa Brühl\n"
        },
        {
            "id": 95863,
            "ctype": "campusonline.student",
            "presentation": "Fiona Naomi Anaïs Haidacher\n"
        },
        {
            "id": 95865,
            "ctype": "campusonline.student",
            "presentation": "Niklas Severin Palt\n"
        },
        {
            "id": 95866,
            "ctype": "campusonline.student",
            "presentation": "Edita Morina\n"
        },
        {
            "id": 95873,
            "ctype": "campusonline.student",
            "presentation": "Marlene Laschtowiczka\n"
        },
        {
            "id": 95874,
            "ctype": "campusonline.student",
            "presentation": "Anna Traninger\n"
        },
        {
            "id": 95875,
            "ctype": "campusonline.student",
            "presentation": "Caroline Schellschmidt\n"
        }
    ]
}