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=16220
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=16240",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16200",
    "results": [
        {
            "id": 98320,
            "ctype": "campusonline.student",
            "presentation": "Jakob Laumer\n"
        },
        {
            "id": 98321,
            "ctype": "campusonline.student",
            "presentation": "Gabriel Christoph Brand\n"
        },
        {
            "id": 98323,
            "ctype": "campusonline.student",
            "presentation": "Simon Eilmsteiner\n"
        },
        {
            "id": 98325,
            "ctype": "campusonline.student",
            "presentation": "Kirolos Gendy\n"
        },
        {
            "id": 98326,
            "ctype": "campusonline.student",
            "presentation": "Birgit Trettan\n"
        },
        {
            "id": 98327,
            "ctype": "campusonline.student",
            "presentation": "Fabian Schmid\n"
        },
        {
            "id": 98328,
            "ctype": "campusonline.student",
            "presentation": "Theresa Christine Fröhlich\n"
        },
        {
            "id": 98329,
            "ctype": "campusonline.student",
            "presentation": "Antonia Eger\n"
        },
        {
            "id": 98331,
            "ctype": "campusonline.student",
            "presentation": "Alexander Mehringer\n"
        },
        {
            "id": 98332,
            "ctype": "campusonline.student",
            "presentation": "Franziska Kristina Schmarda\n"
        },
        {
            "id": 98333,
            "ctype": "campusonline.student",
            "presentation": "Katharina Ebm\n"
        },
        {
            "id": 98334,
            "ctype": "campusonline.student",
            "presentation": "Friederike Saße\n"
        },
        {
            "id": 98335,
            "ctype": "campusonline.student",
            "presentation": "Julia Herteux\n"
        },
        {
            "id": 98338,
            "ctype": "campusonline.student",
            "presentation": "Aaron Gratzer\n"
        },
        {
            "id": 98339,
            "ctype": "campusonline.student",
            "presentation": "Amanjit Walter\n"
        },
        {
            "id": 98341,
            "ctype": "campusonline.student",
            "presentation": "Andreas Bayer\n"
        },
        {
            "id": 98342,
            "ctype": "campusonline.student",
            "presentation": "Marco Mairinger\n"
        },
        {
            "id": 98343,
            "ctype": "campusonline.student",
            "presentation": "Chiara Musiol\n"
        },
        {
            "id": 98345,
            "ctype": "campusonline.student",
            "presentation": "Burak Kaya\n"
        },
        {
            "id": 98347,
            "ctype": "campusonline.student",
            "presentation": "Peter Christian Langkau\n"
        }
    ]
}