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=16040
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=16060",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16020",
    "results": [
        {
            "id": 96431,
            "ctype": "campusonline.student",
            "presentation": "Attila Ismayilov\n"
        },
        {
            "id": 96436,
            "ctype": "campusonline.student",
            "presentation": "Thomas Widek\n"
        },
        {
            "id": 96437,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Khom\n"
        },
        {
            "id": 96445,
            "ctype": "campusonline.student",
            "presentation": "Bashar Hanna\n"
        },
        {
            "id": 96451,
            "ctype": "campusonline.student",
            "presentation": "Katrin Stubenruss\n"
        },
        {
            "id": 96452,
            "ctype": "campusonline.student",
            "presentation": "Cigdem Erdogan\n"
        },
        {
            "id": 96453,
            "ctype": "campusonline.student",
            "presentation": "Markus Wiener\n"
        },
        {
            "id": 96468,
            "ctype": "campusonline.student",
            "presentation": "Clemens Poppe\n"
        },
        {
            "id": 96486,
            "ctype": "campusonline.student",
            "presentation": "Anton Katerenchuk\n"
        },
        {
            "id": 96495,
            "ctype": "campusonline.student",
            "presentation": "Benedict Kolmer\n"
        },
        {
            "id": 96539,
            "ctype": "campusonline.student",
            "presentation": "Rron Guguli\n"
        },
        {
            "id": 96551,
            "ctype": "campusonline.student",
            "presentation": "Tamara Fernanda de Souza Colman Mombartz\n"
        },
        {
            "id": 96556,
            "ctype": "campusonline.student",
            "presentation": "Vanessa Hartner\n"
        },
        {
            "id": 96562,
            "ctype": "campusonline.student",
            "presentation": "Nicole Patrizia Bättig\n"
        },
        {
            "id": 96620,
            "ctype": "campusonline.student",
            "presentation": "Anna Franziska Holzinger\n"
        },
        {
            "id": 96637,
            "ctype": "campusonline.student",
            "presentation": "Sami Abadi\n"
        },
        {
            "id": 96639,
            "ctype": "campusonline.student",
            "presentation": "Aashish Pariyar\n"
        },
        {
            "id": 96653,
            "ctype": "campusonline.student",
            "presentation": "Severine Kerbl\n"
        },
        {
            "id": 96659,
            "ctype": "campusonline.student",
            "presentation": "Valentina Riepl\n"
        },
        {
            "id": 96664,
            "ctype": "campusonline.student",
            "presentation": "Tony Hartmann\n"
        }
    ]
}