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=15520
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=15540",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15500",
    "results": [
        {
            "id": 93228,
            "ctype": "campusonline.student",
            "presentation": "Johannes Späth\n"
        },
        {
            "id": 93231,
            "ctype": "campusonline.student",
            "presentation": "Vinzenz Schmer-Galunder\n"
        },
        {
            "id": 93232,
            "ctype": "campusonline.student",
            "presentation": "Madeleine Dutschei\n"
        },
        {
            "id": 93234,
            "ctype": "campusonline.student",
            "presentation": "Tobias Peschaut\n"
        },
        {
            "id": 93235,
            "ctype": "campusonline.student",
            "presentation": "Nora Schwegel\n"
        },
        {
            "id": 93238,
            "ctype": "campusonline.student",
            "presentation": "Vera Schrempf\n"
        },
        {
            "id": 93240,
            "ctype": "campusonline.student",
            "presentation": "Klemens Kroger\n"
        },
        {
            "id": 93246,
            "ctype": "campusonline.student",
            "presentation": "Tobias Pickl\n"
        },
        {
            "id": 93247,
            "ctype": "campusonline.student",
            "presentation": "Hanna Maria Russegger\n"
        },
        {
            "id": 93248,
            "ctype": "campusonline.student",
            "presentation": "Lisa-Marie Zaiß\n"
        },
        {
            "id": 93252,
            "ctype": "campusonline.student",
            "presentation": "Sarah Wedenig\n"
        },
        {
            "id": 93255,
            "ctype": "campusonline.student",
            "presentation": "Valentin Kastner\n"
        },
        {
            "id": 93258,
            "ctype": "campusonline.student",
            "presentation": "Lisa Queißer\n"
        },
        {
            "id": 93262,
            "ctype": "campusonline.student",
            "presentation": "Kateryna Liutkevych\n"
        },
        {
            "id": 93264,
            "ctype": "campusonline.student",
            "presentation": "Rebecca Rohr\n"
        },
        {
            "id": 93265,
            "ctype": "campusonline.student",
            "presentation": "Johanna Schuß\n"
        },
        {
            "id": 93266,
            "ctype": "campusonline.student",
            "presentation": "Adina Vanessa Lehnen\n"
        },
        {
            "id": 93267,
            "ctype": "campusonline.student",
            "presentation": "Esta Leimer\n"
        },
        {
            "id": 93274,
            "ctype": "campusonline.student",
            "presentation": "Fabian Flaschka\n"
        },
        {
            "id": 93275,
            "ctype": "campusonline.student",
            "presentation": "Lena Rauscher\n"
        }
    ]
}