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=16980
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=17000",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16960",
    "results": [
        {
            "id": 100404,
            "ctype": "campusonline.student",
            "presentation": "Konstanze Simpfendörfer\n"
        },
        {
            "id": 100407,
            "ctype": "campusonline.student",
            "presentation": "Carmen Zerner\n"
        },
        {
            "id": 100409,
            "ctype": "campusonline.student",
            "presentation": "Jan Kleinherr\n"
        },
        {
            "id": 100411,
            "ctype": "campusonline.student",
            "presentation": "Marlies Agnes Ponsold\n"
        },
        {
            "id": 100413,
            "ctype": "campusonline.student",
            "presentation": "Lea Isabella Hysa\n"
        },
        {
            "id": 100416,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Wandl\n"
        },
        {
            "id": 100417,
            "ctype": "campusonline.student",
            "presentation": "Alexander Thaller\n"
        },
        {
            "id": 100419,
            "ctype": "campusonline.student",
            "presentation": "Mario Koller\n"
        },
        {
            "id": 100422,
            "ctype": "campusonline.student",
            "presentation": "Sophie Aschbacher\n"
        },
        {
            "id": 100424,
            "ctype": "campusonline.student",
            "presentation": "Karen Gelfarth\n"
        },
        {
            "id": 100426,
            "ctype": "campusonline.student",
            "presentation": "Caroline Hochnetz\n"
        },
        {
            "id": 100430,
            "ctype": "campusonline.student",
            "presentation": "Philipp Reiter\n"
        },
        {
            "id": 100432,
            "ctype": "campusonline.student",
            "presentation": "Patrick Christian Ganß\n"
        },
        {
            "id": 100434,
            "ctype": "campusonline.student",
            "presentation": "Lena Alicia Stumpf\n"
        },
        {
            "id": 100436,
            "ctype": "campusonline.student",
            "presentation": "Julia Slamanig\n"
        },
        {
            "id": 100438,
            "ctype": "campusonline.student",
            "presentation": "Constantin Michael Fuchs\n"
        },
        {
            "id": 100440,
            "ctype": "campusonline.student",
            "presentation": "Michael Grogger\n"
        },
        {
            "id": 100442,
            "ctype": "campusonline.student",
            "presentation": "Carmen Burger-Ringer\n"
        },
        {
            "id": 100444,
            "ctype": "campusonline.student",
            "presentation": "Paula Santer\n"
        },
        {
            "id": 100447,
            "ctype": "campusonline.student",
            "presentation": "Hugo Borstner\n"
        }
    ]
}