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=16640
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=16660",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16620",
    "results": [
        {
            "id": 98980,
            "ctype": "campusonline.student",
            "presentation": "Marlene Puchberger\n"
        },
        {
            "id": 98981,
            "ctype": "campusonline.student",
            "presentation": "Katharina Pustelnik\n"
        },
        {
            "id": 98982,
            "ctype": "campusonline.student",
            "presentation": "Lukas Putzer\n"
        },
        {
            "id": 98983,
            "ctype": "campusonline.student",
            "presentation": "Franziska Rameseder\n"
        },
        {
            "id": 98984,
            "ctype": "campusonline.student",
            "presentation": "Lena Rammerstorfer\n"
        },
        {
            "id": 98985,
            "ctype": "campusonline.student",
            "presentation": "Sophia Reifeltshammer\n"
        },
        {
            "id": 98986,
            "ctype": "campusonline.student",
            "presentation": "Leonhard Reitinger\n"
        },
        {
            "id": 98987,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Erik Fernando Reyes Nielsen\n"
        },
        {
            "id": 98988,
            "ctype": "campusonline.student",
            "presentation": "Vanessa Sandra Rist\n"
        },
        {
            "id": 98989,
            "ctype": "campusonline.student",
            "presentation": "Edanur Sacan\n"
        },
        {
            "id": 98990,
            "ctype": "campusonline.student",
            "presentation": "Romana Mariella Sandner\n"
        },
        {
            "id": 98991,
            "ctype": "campusonline.student",
            "presentation": "Lisa Schaufler\n"
        },
        {
            "id": 98992,
            "ctype": "campusonline.student",
            "presentation": "Valentina Schedl\n"
        },
        {
            "id": 98993,
            "ctype": "campusonline.student",
            "presentation": "Stefan Schedlberger\n"
        },
        {
            "id": 98994,
            "ctype": "campusonline.student",
            "presentation": "Lena Schiebl\n"
        },
        {
            "id": 98995,
            "ctype": "campusonline.student",
            "presentation": "Anna Sophia Schindlauer\n"
        },
        {
            "id": 98996,
            "ctype": "campusonline.student",
            "presentation": "Marie-Sophie Schloffer\n"
        },
        {
            "id": 98997,
            "ctype": "campusonline.student",
            "presentation": "Johanna Schneebauer\n"
        },
        {
            "id": 98998,
            "ctype": "campusonline.student",
            "presentation": "Pia Schneeberger\n"
        },
        {
            "id": 98999,
            "ctype": "campusonline.student",
            "presentation": "Hannah Joan Schnitzer\n"
        }
    ]
}