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=18280
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=18300",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18260",
    "results": [
        {
            "id": 104375,
            "ctype": "campusonline.student",
            "presentation": "Nora Katharina Putz\n"
        },
        {
            "id": 104379,
            "ctype": "campusonline.student",
            "presentation": "Julian Humer\n"
        },
        {
            "id": 104380,
            "ctype": "campusonline.student",
            "presentation": "Lea Krapfl\n"
        },
        {
            "id": 104381,
            "ctype": "campusonline.student",
            "presentation": "Jakob Hofer\n"
        },
        {
            "id": 104382,
            "ctype": "campusonline.student",
            "presentation": "Lena Anna Wahl\n"
        },
        {
            "id": 104383,
            "ctype": "campusonline.student",
            "presentation": "Bea Bliemel\n"
        },
        {
            "id": 104384,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Hawel\n"
        },
        {
            "id": 104385,
            "ctype": "campusonline.student",
            "presentation": "Asena Uyar\n"
        },
        {
            "id": 104386,
            "ctype": "campusonline.student",
            "presentation": "Jakob Zaunmayr\n"
        },
        {
            "id": 104387,
            "ctype": "campusonline.student",
            "presentation": "Florian Högler\n"
        },
        {
            "id": 104388,
            "ctype": "campusonline.student",
            "presentation": "Jan Raab\n"
        },
        {
            "id": 104389,
            "ctype": "campusonline.student",
            "presentation": "Leonie Fornika\n"
        },
        {
            "id": 104392,
            "ctype": "campusonline.student",
            "presentation": "Julia Kristaloczy\n"
        },
        {
            "id": 104394,
            "ctype": "campusonline.student",
            "presentation": "Daniela Sabathy\n"
        },
        {
            "id": 104396,
            "ctype": "campusonline.student",
            "presentation": "Philipp Singer\n"
        },
        {
            "id": 104398,
            "ctype": "campusonline.student",
            "presentation": "Povilas Miknevicius\n"
        },
        {
            "id": 104400,
            "ctype": "campusonline.student",
            "presentation": "Daniel Schneeberger\n"
        },
        {
            "id": 104402,
            "ctype": "campusonline.student",
            "presentation": "Claudia Percht\n"
        },
        {
            "id": 104404,
            "ctype": "campusonline.student",
            "presentation": "Carmen Pollet\n"
        },
        {
            "id": 104405,
            "ctype": "campusonline.student",
            "presentation": "Barbara Hammer\n"
        }
    ]
}