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=17660
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=17680",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17640",
    "results": [
        {
            "id": 102918,
            "ctype": "campusonline.student",
            "presentation": "Sarah Mayer\n"
        },
        {
            "id": 102920,
            "ctype": "campusonline.student",
            "presentation": "Florian Aldrian\n"
        },
        {
            "id": 102922,
            "ctype": "campusonline.student",
            "presentation": "Nina Maria Gabriel\n"
        },
        {
            "id": 102924,
            "ctype": "campusonline.student",
            "presentation": "Tanja Wallner\n"
        },
        {
            "id": 102926,
            "ctype": "campusonline.student",
            "presentation": "Julia Anna Reinbacher\n"
        },
        {
            "id": 102929,
            "ctype": "campusonline.student",
            "presentation": "Nikola Barbara Kopp\n"
        },
        {
            "id": 102931,
            "ctype": "campusonline.student",
            "presentation": "Laura Raphaela Lukasser\n"
        },
        {
            "id": 102933,
            "ctype": "campusonline.student",
            "presentation": "Petra Zenz\n"
        },
        {
            "id": 102935,
            "ctype": "campusonline.student",
            "presentation": "Simone Margot Sawatzki\n"
        },
        {
            "id": 102943,
            "ctype": "campusonline.student",
            "presentation": "Sophie Victoria Wanderer\n"
        },
        {
            "id": 102945,
            "ctype": "campusonline.student",
            "presentation": "Omer Suljevic\n"
        },
        {
            "id": 102947,
            "ctype": "campusonline.student",
            "presentation": "Gerit Verena Mayrhuber\n"
        },
        {
            "id": 102949,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Ulrike Wittig\n"
        },
        {
            "id": 102951,
            "ctype": "campusonline.student",
            "presentation": "Julia Voglhuber\n"
        },
        {
            "id": 102955,
            "ctype": "campusonline.student",
            "presentation": "Verena Handl\n"
        },
        {
            "id": 102957,
            "ctype": "campusonline.student",
            "presentation": "Eva Milbradt\n"
        },
        {
            "id": 102959,
            "ctype": "campusonline.student",
            "presentation": "Christina Nemecz\n"
        },
        {
            "id": 102963,
            "ctype": "campusonline.student",
            "presentation": "Lisa-Maria Schantl\n"
        },
        {
            "id": 102965,
            "ctype": "campusonline.student",
            "presentation": "Johannes Pilic\n"
        },
        {
            "id": 102967,
            "ctype": "campusonline.student",
            "presentation": "Cornelia Stockreiter\n"
        }
    ]
}