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=15620
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=15640",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15600",
    "results": [
        {
            "id": 93641,
            "ctype": "campusonline.student",
            "presentation": "Tetiana Aleksieieva\n"
        },
        {
            "id": 93656,
            "ctype": "campusonline.student",
            "presentation": "Selma Konjić\n"
        },
        {
            "id": 93658,
            "ctype": "campusonline.student",
            "presentation": "Berina Makic\n"
        },
        {
            "id": 93669,
            "ctype": "campusonline.student",
            "presentation": "Jacqueline Güttler\n"
        },
        {
            "id": 93677,
            "ctype": "campusonline.student",
            "presentation": "Ndriçim Musliu\n"
        },
        {
            "id": 93680,
            "ctype": "campusonline.student",
            "presentation": "Marlene Nina Paunger\n"
        },
        {
            "id": 93699,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Nina Verena Matyas\n"
        },
        {
            "id": 93700,
            "ctype": "campusonline.student",
            "presentation": "Valeriia Khairetdinova\n"
        },
        {
            "id": 93702,
            "ctype": "campusonline.student",
            "presentation": "Stefanie Bohinc\n"
        },
        {
            "id": 93745,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Blatterer\n"
        },
        {
            "id": 93762,
            "ctype": "campusonline.student",
            "presentation": "Christoph Robin Listl\n"
        },
        {
            "id": 93764,
            "ctype": "campusonline.student",
            "presentation": "Bastian Weiß\n"
        },
        {
            "id": 93767,
            "ctype": "campusonline.student",
            "presentation": "Lisa Maria Schmitt\n"
        },
        {
            "id": 93773,
            "ctype": "campusonline.student",
            "presentation": "Andreas Pritsch\n"
        },
        {
            "id": 93774,
            "ctype": "campusonline.student",
            "presentation": "Clara Großschädl\n"
        },
        {
            "id": 93779,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Benedikt Siess\n"
        },
        {
            "id": 93780,
            "ctype": "campusonline.student",
            "presentation": "Nikola Owsianka\n"
        },
        {
            "id": 93785,
            "ctype": "campusonline.student",
            "presentation": "Mathias Ulrich Haug\n"
        },
        {
            "id": 93801,
            "ctype": "campusonline.student",
            "presentation": "Hannah Fluhrer\n"
        },
        {
            "id": 93807,
            "ctype": "campusonline.student",
            "presentation": "Silke Reichmann\n"
        }
    ]
}