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=15860
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=15880",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15840",
    "results": [
        {
            "id": 95760,
            "ctype": "campusonline.student",
            "presentation": "Lisa Jernej\n"
        },
        {
            "id": 95761,
            "ctype": "campusonline.student",
            "presentation": "Barbara Leithenmayr\n"
        },
        {
            "id": 95762,
            "ctype": "campusonline.student",
            "presentation": "Esther Kim Tuffour\n"
        },
        {
            "id": 95764,
            "ctype": "campusonline.student",
            "presentation": "Julius Anno Liebscher\n"
        },
        {
            "id": 95765,
            "ctype": "campusonline.student",
            "presentation": "Melanie Lanz-Schlager\n"
        },
        {
            "id": 95766,
            "ctype": "campusonline.student",
            "presentation": "Hannah Kühleitner\n"
        },
        {
            "id": 95767,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Harrich\n"
        },
        {
            "id": 95769,
            "ctype": "campusonline.student",
            "presentation": "Sandra Smoly\n"
        },
        {
            "id": 95773,
            "ctype": "campusonline.student",
            "presentation": "Christina Partl\n"
        },
        {
            "id": 95774,
            "ctype": "campusonline.student",
            "presentation": "Marco Robert Köster\n"
        },
        {
            "id": 95778,
            "ctype": "campusonline.student",
            "presentation": "Hannah Charlotte Nürnberg\n"
        },
        {
            "id": 95779,
            "ctype": "campusonline.student",
            "presentation": "Lena Carolin Stanschus\n"
        },
        {
            "id": 95781,
            "ctype": "campusonline.student",
            "presentation": "Martin Kirilov Dragnev\n"
        },
        {
            "id": 95782,
            "ctype": "campusonline.student",
            "presentation": "Maike Haag\n"
        },
        {
            "id": 95783,
            "ctype": "campusonline.student",
            "presentation": "Katharina Maria Hasewend\n"
        },
        {
            "id": 95785,
            "ctype": "campusonline.student",
            "presentation": "Michael Rumpf\n"
        },
        {
            "id": 95786,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Spirkl\n"
        },
        {
            "id": 95787,
            "ctype": "campusonline.student",
            "presentation": "Sarah Krappinger\n"
        },
        {
            "id": 95793,
            "ctype": "campusonline.student",
            "presentation": "Lisa Schmidhumer\n"
        },
        {
            "id": 95794,
            "ctype": "campusonline.student",
            "presentation": "Florian Philipp Jecl\n"
        }
    ]
}