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=16940
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=16960",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16920",
    "results": [
        {
            "id": 100301,
            "ctype": "campusonline.student",
            "presentation": "Johanna Pilz\n"
        },
        {
            "id": 100303,
            "ctype": "campusonline.student",
            "presentation": "Jannis Brotzer\n"
        },
        {
            "id": 100305,
            "ctype": "campusonline.student",
            "presentation": "Nunzia Sophie Amann\n"
        },
        {
            "id": 100307,
            "ctype": "campusonline.student",
            "presentation": "Mathias Thurner\n"
        },
        {
            "id": 100309,
            "ctype": "campusonline.student",
            "presentation": "Benedikt Rahn\n"
        },
        {
            "id": 100313,
            "ctype": "campusonline.student",
            "presentation": "Patricia Yvonne Czerniec\n"
        },
        {
            "id": 100315,
            "ctype": "campusonline.student",
            "presentation": "Anna Gerhart\n"
        },
        {
            "id": 100317,
            "ctype": "campusonline.student",
            "presentation": "Raika Kühne\n"
        },
        {
            "id": 100319,
            "ctype": "campusonline.student",
            "presentation": "Cornelia Frisch\n"
        },
        {
            "id": 100321,
            "ctype": "campusonline.student",
            "presentation": "Max Eissner\n"
        },
        {
            "id": 100323,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Dirry\n"
        },
        {
            "id": 100325,
            "ctype": "campusonline.student",
            "presentation": "Sophie Joch\n"
        },
        {
            "id": 100327,
            "ctype": "campusonline.student",
            "presentation": "Lea Franziska Kitzmüller\n"
        },
        {
            "id": 100329,
            "ctype": "campusonline.student",
            "presentation": "Patrizia Stefanie Gasser\n"
        },
        {
            "id": 100331,
            "ctype": "campusonline.student",
            "presentation": "Marvin Essl\n"
        },
        {
            "id": 100333,
            "ctype": "campusonline.student",
            "presentation": "Lukas Aldrian\n"
        },
        {
            "id": 100335,
            "ctype": "campusonline.student",
            "presentation": "Christina Prein\n"
        },
        {
            "id": 100337,
            "ctype": "campusonline.student",
            "presentation": "Elias Johannes Dreikorn\n"
        },
        {
            "id": 100340,
            "ctype": "campusonline.student",
            "presentation": "Tanja Ruprechter\n"
        },
        {
            "id": 100342,
            "ctype": "campusonline.student",
            "presentation": "Harald Edlinger\n"
        }
    ]
}