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=17240
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=17260",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17220",
    "results": [
        {
            "id": 101311,
            "ctype": "campusonline.student",
            "presentation": "Katharina Cuca\n"
        },
        {
            "id": 101312,
            "ctype": "campusonline.student",
            "presentation": "Melisa Cvrk\n"
        },
        {
            "id": 101313,
            "ctype": "campusonline.student",
            "presentation": "Bruna de Oliveira\n"
        },
        {
            "id": 101314,
            "ctype": "campusonline.student",
            "presentation": "Christian Franz Xaver Deicker\n"
        },
        {
            "id": 101315,
            "ctype": "campusonline.student",
            "presentation": "Andreas Dickinger-Bierecker\n"
        },
        {
            "id": 101316,
            "ctype": "campusonline.student",
            "presentation": "Alexander Dittrich\n"
        },
        {
            "id": 101317,
            "ctype": "campusonline.student",
            "presentation": "Andreas Edinger\n"
        },
        {
            "id": 101318,
            "ctype": "campusonline.student",
            "presentation": "Martin Johannes Egger\n"
        },
        {
            "id": 101319,
            "ctype": "campusonline.student",
            "presentation": "Muhamed Eminhazari\n"
        },
        {
            "id": 101320,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Eybl\n"
        },
        {
            "id": 101321,
            "ctype": "campusonline.student",
            "presentation": "Benjamin Da Ponte\n"
        },
        {
            "id": 101322,
            "ctype": "campusonline.student",
            "presentation": "Katharina Feicht\n"
        },
        {
            "id": 101323,
            "ctype": "campusonline.student",
            "presentation": "Tanja Feldhaas\n"
        },
        {
            "id": 101324,
            "ctype": "campusonline.student",
            "presentation": "Andre Fitzner\n"
        },
        {
            "id": 101325,
            "ctype": "campusonline.student",
            "presentation": "Franziska Föderl\n"
        },
        {
            "id": 101326,
            "ctype": "campusonline.student",
            "presentation": "Marlene Frank\n"
        },
        {
            "id": 101327,
            "ctype": "campusonline.student",
            "presentation": "Antonia Friedl\n"
        },
        {
            "id": 101328,
            "ctype": "campusonline.student",
            "presentation": "Franziska Funk\n"
        },
        {
            "id": 101329,
            "ctype": "campusonline.student",
            "presentation": "Verena Gahbauer\n"
        },
        {
            "id": 101330,
            "ctype": "campusonline.student",
            "presentation": "Annemarie Gelo\n"
        }
    ]
}