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=18320
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=18340",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18300",
    "results": [
        {
            "id": 104454,
            "ctype": "campusonline.student",
            "presentation": "Eva-Maria Fleck\n"
        },
        {
            "id": 104459,
            "ctype": "campusonline.student",
            "presentation": "Katharina Hankel\n"
        },
        {
            "id": 104460,
            "ctype": "campusonline.student",
            "presentation": "Lisa Tauffer\n"
        },
        {
            "id": 104461,
            "ctype": "campusonline.student",
            "presentation": "Jan Öster\n"
        },
        {
            "id": 104462,
            "ctype": "campusonline.student",
            "presentation": "Henry Sackmann\n"
        },
        {
            "id": 104463,
            "ctype": "campusonline.student",
            "presentation": "Anna Katharina Miklautz\n"
        },
        {
            "id": 104465,
            "ctype": "campusonline.student",
            "presentation": "Mila Cosima Kansky\n"
        },
        {
            "id": 104467,
            "ctype": "campusonline.student",
            "presentation": "Cosma Ratz\n"
        },
        {
            "id": 104469,
            "ctype": "campusonline.student",
            "presentation": "Denise Strahlhofer\n"
        },
        {
            "id": 104471,
            "ctype": "campusonline.student",
            "presentation": "Sabrina Lüttschwager\n"
        },
        {
            "id": 104473,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Ferrari\n"
        },
        {
            "id": 104475,
            "ctype": "campusonline.student",
            "presentation": "Andrea Munz\n"
        },
        {
            "id": 104477,
            "ctype": "campusonline.student",
            "presentation": "Melisa Gamber\n"
        },
        {
            "id": 104480,
            "ctype": "campusonline.student",
            "presentation": "Janis Plößner\n"
        },
        {
            "id": 104482,
            "ctype": "campusonline.student",
            "presentation": "Katharina Budl\n"
        },
        {
            "id": 104484,
            "ctype": "campusonline.student",
            "presentation": "Hanna Kerschischnik\n"
        },
        {
            "id": 104489,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Karoline Zmatlo\n"
        },
        {
            "id": 104490,
            "ctype": "campusonline.student",
            "presentation": "Tina Neubauer\n"
        },
        {
            "id": 104494,
            "ctype": "campusonline.student",
            "presentation": "Hannah Clarissa Spitaler\n"
        },
        {
            "id": 104496,
            "ctype": "campusonline.student",
            "presentation": "Vincent Immanuel Kranz\n"
        }
    ]
}