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=17860
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=17880",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17840",
    "results": [
        {
            "id": 103559,
            "ctype": "campusonline.student",
            "presentation": "Leonie Katz\n"
        },
        {
            "id": 103561,
            "ctype": "campusonline.student",
            "presentation": "Lisa Martina Klock\n"
        },
        {
            "id": 103563,
            "ctype": "campusonline.student",
            "presentation": "Johanna Grantner\n"
        },
        {
            "id": 103565,
            "ctype": "campusonline.student",
            "presentation": "Helene Bernhild Dippel\n"
        },
        {
            "id": 103571,
            "ctype": "campusonline.student",
            "presentation": "Leon Marcin Seibel\n"
        },
        {
            "id": 103573,
            "ctype": "campusonline.student",
            "presentation": "Selina Wilfing\n"
        },
        {
            "id": 103575,
            "ctype": "campusonline.student",
            "presentation": "Wolfgang Bergler\n"
        },
        {
            "id": 103577,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Klaudia Sölkner\n"
        },
        {
            "id": 103579,
            "ctype": "campusonline.student",
            "presentation": "Paul Klempnow\n"
        },
        {
            "id": 103581,
            "ctype": "campusonline.student",
            "presentation": "Sophie Elisabeth Rauch\n"
        },
        {
            "id": 103583,
            "ctype": "campusonline.student",
            "presentation": "Karolina Julia Kopczynski\n"
        },
        {
            "id": 103591,
            "ctype": "campusonline.student",
            "presentation": "Timo Linder\n"
        },
        {
            "id": 103593,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Göhring\n"
        },
        {
            "id": 103595,
            "ctype": "campusonline.student",
            "presentation": "Nina Ternobetz\n"
        },
        {
            "id": 103597,
            "ctype": "campusonline.student",
            "presentation": "Ann-Cathrin Carolin Maas\n"
        },
        {
            "id": 103603,
            "ctype": "campusonline.student",
            "presentation": "Bobby Ohakwe\n"
        },
        {
            "id": 103609,
            "ctype": "campusonline.student",
            "presentation": "Carla Ricarda Klein\n"
        },
        {
            "id": 103611,
            "ctype": "campusonline.student",
            "presentation": "Narges Jawadi\n"
        },
        {
            "id": 103613,
            "ctype": "campusonline.student",
            "presentation": "Maria Koch\n"
        },
        {
            "id": 103615,
            "ctype": "campusonline.student",
            "presentation": "Anna-Katharina Kolitsch\n"
        }
    ]
}