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=16920
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=16940",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16900",
    "results": [
        {
            "id": 100243,
            "ctype": "campusonline.student",
            "presentation": "Sandra Maria Pietras\n"
        },
        {
            "id": 100251,
            "ctype": "campusonline.student",
            "presentation": "Marlene Holzer\n"
        },
        {
            "id": 100253,
            "ctype": "campusonline.student",
            "presentation": "Celine Kaja Braun\n"
        },
        {
            "id": 100255,
            "ctype": "campusonline.student",
            "presentation": "Lena Zeiringer\n"
        },
        {
            "id": 100257,
            "ctype": "campusonline.student",
            "presentation": "Susanne Starchl\n"
        },
        {
            "id": 100259,
            "ctype": "campusonline.student",
            "presentation": "Daniel Schmuck\n"
        },
        {
            "id": 100263,
            "ctype": "campusonline.student",
            "presentation": "Theresa Hofer\n"
        },
        {
            "id": 100265,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Rößler\n"
        },
        {
            "id": 100267,
            "ctype": "campusonline.student",
            "presentation": "Lisa-Marie Mally\n"
        },
        {
            "id": 100269,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Wolte\n"
        },
        {
            "id": 100271,
            "ctype": "campusonline.student",
            "presentation": "Theresa Leitner\n"
        },
        {
            "id": 100273,
            "ctype": "campusonline.student",
            "presentation": "Huba Csanád Herczeg\n"
        },
        {
            "id": 100277,
            "ctype": "campusonline.student",
            "presentation": "Marc-Antón Dietrich\n"
        },
        {
            "id": 100279,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Sophie Pfaller\n"
        },
        {
            "id": 100283,
            "ctype": "campusonline.student",
            "presentation": "Charlotte-Luise Maria van Lier\n"
        },
        {
            "id": 100285,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Beck\n"
        },
        {
            "id": 100291,
            "ctype": "campusonline.student",
            "presentation": "Christina Maria Kranz\n"
        },
        {
            "id": 100293,
            "ctype": "campusonline.student",
            "presentation": "Miriam Jäkel\n"
        },
        {
            "id": 100295,
            "ctype": "campusonline.student",
            "presentation": "Paul Maderthaner\n"
        },
        {
            "id": 100299,
            "ctype": "campusonline.student",
            "presentation": "Marina Riemer\n"
        }
    ]
}