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=18620
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=18640",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18600",
    "results": [
        {
            "id": 105300,
            "ctype": "campusonline.student",
            "presentation": "Georg Kaindl\n"
        },
        {
            "id": 105302,
            "ctype": "campusonline.student",
            "presentation": "Carolin Markmann\n"
        },
        {
            "id": 105304,
            "ctype": "campusonline.student",
            "presentation": "Sascha Talan\n"
        },
        {
            "id": 105309,
            "ctype": "campusonline.student",
            "presentation": "Tjaša Krašovec\n"
        },
        {
            "id": 105313,
            "ctype": "campusonline.student",
            "presentation": "Artyom Zachupeiko\n"
        },
        {
            "id": 105315,
            "ctype": "campusonline.student",
            "presentation": "Nina Grujicic\n"
        },
        {
            "id": 105317,
            "ctype": "campusonline.student",
            "presentation": "Rokhsareh Mohammadzadeh\n"
        },
        {
            "id": 105319,
            "ctype": "campusonline.student",
            "presentation": "Lisa-Maria Gubert\n"
        },
        {
            "id": 105324,
            "ctype": "campusonline.student",
            "presentation": "Sofiia Davydchak\n"
        },
        {
            "id": 105326,
            "ctype": "campusonline.student",
            "presentation": "Una Kurtovic\n"
        },
        {
            "id": 105336,
            "ctype": "campusonline.student",
            "presentation": "Vivien Kriegl\n"
        },
        {
            "id": 105338,
            "ctype": "campusonline.student",
            "presentation": "Sabrina Leitgeb\n"
        },
        {
            "id": 105340,
            "ctype": "campusonline.student",
            "presentation": "Simone Begusch\n"
        },
        {
            "id": 105342,
            "ctype": "campusonline.student",
            "presentation": "Alexander Sigg\n"
        },
        {
            "id": 105353,
            "ctype": "campusonline.student",
            "presentation": "Azra Kulovic\n"
        },
        {
            "id": 105355,
            "ctype": "campusonline.student",
            "presentation": "Karin Otter\n"
        },
        {
            "id": 105357,
            "ctype": "campusonline.student",
            "presentation": "Theresia Egger\n"
        },
        {
            "id": 105359,
            "ctype": "campusonline.student",
            "presentation": "Wael Elaily\n"
        },
        {
            "id": 105361,
            "ctype": "campusonline.student",
            "presentation": "Yuliia Pleskot\n"
        },
        {
            "id": 105369,
            "ctype": "campusonline.student",
            "presentation": "Pia Glaser\n"
        }
    ]
}