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=15400
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=15420",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15380",
    "results": [
        {
            "id": 92790,
            "ctype": "campusonline.student",
            "presentation": "Paul Schoiswohl\n"
        },
        {
            "id": 92791,
            "ctype": "campusonline.student",
            "presentation": "Hatice Karatas\n"
        },
        {
            "id": 92801,
            "ctype": "campusonline.student",
            "presentation": "Hannah Bayr\n"
        },
        {
            "id": 92802,
            "ctype": "campusonline.student",
            "presentation": "Felix Gunzer\n"
        },
        {
            "id": 92808,
            "ctype": "campusonline.student",
            "presentation": "Caroline Hiesleitner\n"
        },
        {
            "id": 92813,
            "ctype": "campusonline.student",
            "presentation": "Maria-Luisa Straßmeir\n"
        },
        {
            "id": 92816,
            "ctype": "campusonline.student",
            "presentation": "Thiemo Greistorfer\n"
        },
        {
            "id": 92817,
            "ctype": "campusonline.student",
            "presentation": "Anna Walder\n"
        },
        {
            "id": 92820,
            "ctype": "campusonline.student",
            "presentation": "Philipp Huberts\n"
        },
        {
            "id": 92821,
            "ctype": "campusonline.student",
            "presentation": "Johannes Nikolaus Woltsche\n"
        },
        {
            "id": 92822,
            "ctype": "campusonline.student",
            "presentation": "Sandro Reinhold Reiterer\n"
        },
        {
            "id": 92823,
            "ctype": "campusonline.student",
            "presentation": "Christoph Murauer\n"
        },
        {
            "id": 92824,
            "ctype": "campusonline.student",
            "presentation": "Manuel Christoph Steiger\n"
        },
        {
            "id": 92826,
            "ctype": "campusonline.student",
            "presentation": "Christina Heigl\n"
        },
        {
            "id": 92827,
            "ctype": "campusonline.student",
            "presentation": "Anna Bürger\n"
        },
        {
            "id": 92828,
            "ctype": "campusonline.student",
            "presentation": "Mario Scherkl\n"
        },
        {
            "id": 92830,
            "ctype": "campusonline.student",
            "presentation": "Lukas Raffael Wagner\n"
        },
        {
            "id": 92831,
            "ctype": "campusonline.student",
            "presentation": "Julia Ranftl\n"
        },
        {
            "id": 92832,
            "ctype": "campusonline.student",
            "presentation": "Goran Mitrovic\n"
        },
        {
            "id": 92833,
            "ctype": "campusonline.student",
            "presentation": "Miriam Faber\n"
        }
    ]
}