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=17700
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=17720",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17680",
    "results": [
        {
            "id": 103019,
            "ctype": "campusonline.student",
            "presentation": "Dr. Clara Benna\n"
        },
        {
            "id": 103027,
            "ctype": "campusonline.student",
            "presentation": "Tamara Kalchbrenner\n"
        },
        {
            "id": 103030,
            "ctype": "campusonline.student",
            "presentation": "Demba Sanneh\n"
        },
        {
            "id": 103032,
            "ctype": "campusonline.student",
            "presentation": "Rūta Žulpaitė\n"
        },
        {
            "id": 103034,
            "ctype": "campusonline.student",
            "presentation": "Vera Wasserbacher\n"
        },
        {
            "id": 103040,
            "ctype": "campusonline.student",
            "presentation": "Tanja Euchner\n"
        },
        {
            "id": 103044,
            "ctype": "campusonline.student",
            "presentation": "Lic. Aneta Janina Lenard\n"
        },
        {
            "id": 103048,
            "ctype": "campusonline.student",
            "presentation": "Romy Hansmann\n"
        },
        {
            "id": 103050,
            "ctype": "campusonline.student",
            "presentation": "Eveline Repinc-Neubauer\n"
        },
        {
            "id": 103052,
            "ctype": "campusonline.student",
            "presentation": "Lejla Hofner\n"
        },
        {
            "id": 103054,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Christopher Gonano\n"
        },
        {
            "id": 103056,
            "ctype": "campusonline.student",
            "presentation": "Anna Schrüfer\n"
        },
        {
            "id": 103058,
            "ctype": "campusonline.student",
            "presentation": "Claudia Maria Tiefenbacher\n"
        },
        {
            "id": 103064,
            "ctype": "campusonline.student",
            "presentation": "Anja Dobrijevic\n"
        },
        {
            "id": 103077,
            "ctype": "campusonline.student",
            "presentation": "Christina Ott\n"
        },
        {
            "id": 103090,
            "ctype": "campusonline.student",
            "presentation": "Claudia Fellinger\n"
        },
        {
            "id": 103094,
            "ctype": "campusonline.student",
            "presentation": "Gamze Celikkaya\n"
        },
        {
            "id": 103096,
            "ctype": "campusonline.student",
            "presentation": "Karoline Antonia Robatsch\n"
        },
        {
            "id": 103112,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth-Alina Miklau\n"
        },
        {
            "id": 103114,
            "ctype": "campusonline.student",
            "presentation": "Christine Bausch\n"
        }
    ]
}