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=18420
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=18440",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18400",
    "results": [
        {
            "id": 104752,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Julian Krappinger\n"
        },
        {
            "id": 104754,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Benjamin Gernot Spiegl\n"
        },
        {
            "id": 104758,
            "ctype": "campusonline.student",
            "presentation": "Nicolas Ferry\n"
        },
        {
            "id": 104762,
            "ctype": "campusonline.student",
            "presentation": "Christine Hirtl\n"
        },
        {
            "id": 104766,
            "ctype": "campusonline.student",
            "presentation": "Elizaveta Matveeva\n"
        },
        {
            "id": 104768,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Armin Belarmino\n"
        },
        {
            "id": 104770,
            "ctype": "campusonline.student",
            "presentation": "Michael Koller\n"
        },
        {
            "id": 104780,
            "ctype": "campusonline.student",
            "presentation": "Fabian Rodriguez Bolaños\n"
        },
        {
            "id": 104782,
            "ctype": "campusonline.student",
            "presentation": "Ibrahim Al Souleiman\n"
        },
        {
            "id": 104784,
            "ctype": "campusonline.student",
            "presentation": "Marco Antonio Hidalgo Neira\n"
        },
        {
            "id": 104792,
            "ctype": "campusonline.student",
            "presentation": "Maité Rostgaard Grimont\n"
        },
        {
            "id": 104796,
            "ctype": "campusonline.student",
            "presentation": "Sonja Pöttschacher\n"
        },
        {
            "id": 104798,
            "ctype": "campusonline.student",
            "presentation": "Khwajasohrabudin Sidigi\n"
        },
        {
            "id": 104800,
            "ctype": "campusonline.student",
            "presentation": "Tobias Bacher\n"
        },
        {
            "id": 104802,
            "ctype": "campusonline.student",
            "presentation": "Laura Antonia Spielmann\n"
        },
        {
            "id": 104804,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Katalin Cresnar-Maurer\n"
        },
        {
            "id": 104806,
            "ctype": "campusonline.student",
            "presentation": "Marlene Weblacher\n"
        },
        {
            "id": 104811,
            "ctype": "campusonline.student",
            "presentation": "Nanna Viktoria Gesine Monjé\n"
        },
        {
            "id": 104815,
            "ctype": "campusonline.student",
            "presentation": "Elias Derek Marchl\n"
        },
        {
            "id": 104817,
            "ctype": "campusonline.student",
            "presentation": "Felix Hans Karl Marcus Diller\n"
        }
    ]
}