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=15320
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=15340",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15300",
    "results": [
        {
            "id": 92601,
            "ctype": "campusonline.student",
            "presentation": "Anna Siegl\n"
        },
        {
            "id": 92602,
            "ctype": "campusonline.student",
            "presentation": "Melanie Lisa Napetschnig\n"
        },
        {
            "id": 92603,
            "ctype": "campusonline.student",
            "presentation": "Sanela Nikodijevic\n"
        },
        {
            "id": 92604,
            "ctype": "campusonline.student",
            "presentation": "Thea Perl\n"
        },
        {
            "id": 92606,
            "ctype": "campusonline.student",
            "presentation": "Filip Ivanjko\n"
        },
        {
            "id": 92607,
            "ctype": "campusonline.student",
            "presentation": "Raphaela Maierhofer\n"
        },
        {
            "id": 92608,
            "ctype": "campusonline.student",
            "presentation": "Juliane Iser\n"
        },
        {
            "id": 92609,
            "ctype": "campusonline.student",
            "presentation": "Veronika Rößl\n"
        },
        {
            "id": 92610,
            "ctype": "campusonline.student",
            "presentation": "Julia Meier\n"
        },
        {
            "id": 92612,
            "ctype": "campusonline.student",
            "presentation": "Katharina Scharer\n"
        },
        {
            "id": 92623,
            "ctype": "campusonline.student",
            "presentation": "Michael Meszarics\n"
        },
        {
            "id": 92624,
            "ctype": "campusonline.student",
            "presentation": "Tanja Zechner-Sammer\n"
        },
        {
            "id": 92632,
            "ctype": "campusonline.student",
            "presentation": "Julia Kern\n"
        },
        {
            "id": 92633,
            "ctype": "campusonline.student",
            "presentation": "Frederike Helene Peuser\n"
        },
        {
            "id": 92636,
            "ctype": "campusonline.student",
            "presentation": "Florian Elßer\n"
        },
        {
            "id": 92638,
            "ctype": "campusonline.student",
            "presentation": "Theresa Marie di Vora\n"
        },
        {
            "id": 92639,
            "ctype": "campusonline.student",
            "presentation": "Mateo Macinkovic\n"
        },
        {
            "id": 92641,
            "ctype": "campusonline.student",
            "presentation": "Sebastian Glockner\n"
        },
        {
            "id": 92647,
            "ctype": "campusonline.student",
            "presentation": "Iohanes-Lorean Negrean\n"
        },
        {
            "id": 92648,
            "ctype": "campusonline.student",
            "presentation": "Lea Joanne Reiter\n"
        }
    ]
}