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=18440
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=18460",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18420",
    "results": [
        {
            "id": 104819,
            "ctype": "campusonline.student",
            "presentation": "Tessa Nitya Stefan\n"
        },
        {
            "id": 104823,
            "ctype": "campusonline.student",
            "presentation": "Barbara Maiwald\n"
        },
        {
            "id": 104825,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Roswitha Lienbacher\n"
        },
        {
            "id": 104829,
            "ctype": "campusonline.student",
            "presentation": "Christina Nindl\n"
        },
        {
            "id": 104831,
            "ctype": "campusonline.student",
            "presentation": "Laura Fraek\n"
        },
        {
            "id": 104833,
            "ctype": "campusonline.student",
            "presentation": "Klára Geierová\n"
        },
        {
            "id": 104835,
            "ctype": "campusonline.student",
            "presentation": "Simon Hübenthal\n"
        },
        {
            "id": 104837,
            "ctype": "campusonline.student",
            "presentation": "Daniel Alexander Hilsbecher\n"
        },
        {
            "id": 104839,
            "ctype": "campusonline.student",
            "presentation": "Regina Pühringer\n"
        },
        {
            "id": 104847,
            "ctype": "campusonline.student",
            "presentation": "Dušica Ristić\n"
        },
        {
            "id": 104851,
            "ctype": "campusonline.student",
            "presentation": "Mag.phil. Dominik Grassl\n"
        },
        {
            "id": 104853,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Marina Stevanov\n"
        },
        {
            "id": 104856,
            "ctype": "campusonline.student",
            "presentation": "Anne Hering\n"
        },
        {
            "id": 104858,
            "ctype": "campusonline.student",
            "presentation": "Yusuf Omar Ahmed\n"
        },
        {
            "id": 104860,
            "ctype": "campusonline.student",
            "presentation": "Mag. phil. Claudia Weger\n"
        },
        {
            "id": 104862,
            "ctype": "campusonline.student",
            "presentation": "Barbara Payrhuber\n"
        },
        {
            "id": 104864,
            "ctype": "campusonline.student",
            "presentation": "Anna Maria Rubinigg\n"
        },
        {
            "id": 104866,
            "ctype": "campusonline.student",
            "presentation": "Marlies Maier\n"
        },
        {
            "id": 104868,
            "ctype": "campusonline.student",
            "presentation": "Christiane Kordula Gaugg\n"
        },
        {
            "id": 104870,
            "ctype": "campusonline.student",
            "presentation": "Manuel Macha\n"
        }
    ]
}