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=18600
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=18620",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18580",
    "results": [
        {
            "id": 105250,
            "ctype": "campusonline.student",
            "presentation": "Saghi Zafaranieh\n"
        },
        {
            "id": 105252,
            "ctype": "campusonline.student",
            "presentation": "Tatjana Maria Stross\n"
        },
        {
            "id": 105254,
            "ctype": "campusonline.student",
            "presentation": "Marina Kraxner\n"
        },
        {
            "id": 105256,
            "ctype": "campusonline.student",
            "presentation": "Nina Reinhart\n"
        },
        {
            "id": 105258,
            "ctype": "campusonline.student",
            "presentation": "Simone Oliver Senica\n"
        },
        {
            "id": 105260,
            "ctype": "campusonline.student",
            "presentation": "Iris Bardel-Kahr\n"
        },
        {
            "id": 105264,
            "ctype": "campusonline.student",
            "presentation": "Maxim Andre Honea\n"
        },
        {
            "id": 105266,
            "ctype": "campusonline.student",
            "presentation": "Elke Eva Kern\n"
        },
        {
            "id": 105268,
            "ctype": "campusonline.student",
            "presentation": "Yuriy Nazarenko\n"
        },
        {
            "id": 105270,
            "ctype": "campusonline.student",
            "presentation": "Sofía Castrillón Acosta\n"
        },
        {
            "id": 105274,
            "ctype": "campusonline.student",
            "presentation": "Ingrid Matzer\n"
        },
        {
            "id": 105279,
            "ctype": "campusonline.student",
            "presentation": "Julia Walter\n"
        },
        {
            "id": 105281,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Wallner\n"
        },
        {
            "id": 105286,
            "ctype": "campusonline.student",
            "presentation": "Bettina Hierzberger\n"
        },
        {
            "id": 105288,
            "ctype": "campusonline.student",
            "presentation": "Semen Beloshapka\n"
        },
        {
            "id": 105290,
            "ctype": "campusonline.student",
            "presentation": "Stephan Alexander Baier\n"
        },
        {
            "id": 105292,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Simone Lazelsberger\n"
        },
        {
            "id": 105294,
            "ctype": "campusonline.student",
            "presentation": "Blerta Jakupi\n"
        },
        {
            "id": 105296,
            "ctype": "campusonline.student",
            "presentation": "Corinna Bernsteiner\n"
        },
        {
            "id": 105298,
            "ctype": "campusonline.student",
            "presentation": "Nina Maria Bleimuth\n"
        }
    ]
}