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=18000
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=18020",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17980",
    "results": [
        {
            "id": 103955,
            "ctype": "campusonline.student",
            "presentation": "Anna Kanduth\n"
        },
        {
            "id": 103957,
            "ctype": "campusonline.student",
            "presentation": "Felix Krasser\n"
        },
        {
            "id": 103959,
            "ctype": "campusonline.student",
            "presentation": "Klara Marie Weber\n"
        },
        {
            "id": 103961,
            "ctype": "campusonline.student",
            "presentation": "Marie Gnewuch\n"
        },
        {
            "id": 103963,
            "ctype": "campusonline.student",
            "presentation": "Manuel Wernitznig\n"
        },
        {
            "id": 103965,
            "ctype": "campusonline.student",
            "presentation": "Lena Goliasch\n"
        },
        {
            "id": 103969,
            "ctype": "campusonline.student",
            "presentation": "Mona Ahmed Ayad\n"
        },
        {
            "id": 103971,
            "ctype": "campusonline.student",
            "presentation": "Anna Gruber\n"
        },
        {
            "id": 103973,
            "ctype": "campusonline.student",
            "presentation": "Manfred Lukas Pronegg\n"
        },
        {
            "id": 103977,
            "ctype": "campusonline.student",
            "presentation": "Karla Hanauer\n"
        },
        {
            "id": 103979,
            "ctype": "campusonline.student",
            "presentation": "Shabnam Ehsani\n"
        },
        {
            "id": 103981,
            "ctype": "campusonline.student",
            "presentation": "Luca Felix Knichel\n"
        },
        {
            "id": 103985,
            "ctype": "campusonline.student",
            "presentation": "Peter Weinmüller\n"
        },
        {
            "id": 103987,
            "ctype": "campusonline.student",
            "presentation": "Sarina Jäger\n"
        },
        {
            "id": 103989,
            "ctype": "campusonline.student",
            "presentation": "Marie Florentin Rudolph\n"
        },
        {
            "id": 103991,
            "ctype": "campusonline.student",
            "presentation": "Oliver Watzinger\n"
        },
        {
            "id": 103993,
            "ctype": "campusonline.student",
            "presentation": "Sonja Cappello\n"
        },
        {
            "id": 103995,
            "ctype": "campusonline.student",
            "presentation": "Jakob Rettenbacher\n"
        },
        {
            "id": 103997,
            "ctype": "campusonline.student",
            "presentation": "Hannah Kautzner\n"
        },
        {
            "id": 103999,
            "ctype": "campusonline.student",
            "presentation": "Marie-Theres Gaßler\n"
        }
    ]
}