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=18540
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=18560",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18520",
    "results": [
        {
            "id": 105081,
            "ctype": "campusonline.student",
            "presentation": "Daniela Stimpfl\n"
        },
        {
            "id": 105083,
            "ctype": "campusonline.student",
            "presentation": "Mirijam Axmann\n"
        },
        {
            "id": 105085,
            "ctype": "campusonline.student",
            "presentation": "Anja Schober\n"
        },
        {
            "id": 105087,
            "ctype": "campusonline.student",
            "presentation": "Leonhard Lorber\n"
        },
        {
            "id": 105093,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Viktoria Immervoll\n"
        },
        {
            "id": 105095,
            "ctype": "campusonline.student",
            "presentation": "Katrin Gabriela Kahlbacher\n"
        },
        {
            "id": 105097,
            "ctype": "campusonline.student",
            "presentation": "Mario JelovĨak\n"
        },
        {
            "id": 105103,
            "ctype": "campusonline.student",
            "presentation": "Lic. Marta Szmyra\n"
        },
        {
            "id": 105105,
            "ctype": "campusonline.student",
            "presentation": "Jan Sklensky\n"
        },
        {
            "id": 105109,
            "ctype": "campusonline.student",
            "presentation": "Lic. Alicja Wawrzen\n"
        },
        {
            "id": 105111,
            "ctype": "campusonline.student",
            "presentation": "Thomas Lins\n"
        },
        {
            "id": 105113,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Hansmann\n"
        },
        {
            "id": 105116,
            "ctype": "campusonline.student",
            "presentation": "Aaroh Anand Joshi\n"
        },
        {
            "id": 105120,
            "ctype": "campusonline.student",
            "presentation": "Ursula Plauder\n"
        },
        {
            "id": 105122,
            "ctype": "campusonline.student",
            "presentation": "Evelyn Staud\n"
        },
        {
            "id": 105124,
            "ctype": "campusonline.student",
            "presentation": "Omer Zakri\n"
        },
        {
            "id": 105126,
            "ctype": "campusonline.student",
            "presentation": "Kirill Smirnov\n"
        },
        {
            "id": 105129,
            "ctype": "campusonline.student",
            "presentation": "Katrin Wandaler\n"
        },
        {
            "id": 105131,
            "ctype": "campusonline.student",
            "presentation": "Manaraleslam Mattar\n"
        },
        {
            "id": 105133,
            "ctype": "campusonline.student",
            "presentation": "Vladyslav Khodii\n"
        }
    ]
}