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=16020
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=16040",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16000",
    "results": [
        {
            "id": 96361,
            "ctype": "campusonline.student",
            "presentation": "Katharina Maria Seifried\n"
        },
        {
            "id": 96362,
            "ctype": "campusonline.student",
            "presentation": "Emir Jagodic\n"
        },
        {
            "id": 96364,
            "ctype": "campusonline.student",
            "presentation": "Nina Bonkat\n"
        },
        {
            "id": 96365,
            "ctype": "campusonline.student",
            "presentation": "Denis Turanovic\n"
        },
        {
            "id": 96370,
            "ctype": "campusonline.student",
            "presentation": "Felix Prinz\n"
        },
        {
            "id": 96372,
            "ctype": "campusonline.student",
            "presentation": "Miriam Auer\n"
        },
        {
            "id": 96376,
            "ctype": "campusonline.student",
            "presentation": "Fabian Nowak\n"
        },
        {
            "id": 96377,
            "ctype": "campusonline.student",
            "presentation": "Amirali Fathollahi\n"
        },
        {
            "id": 96378,
            "ctype": "campusonline.student",
            "presentation": "Johanna De Biasi\n"
        },
        {
            "id": 96379,
            "ctype": "campusonline.student",
            "presentation": "Moritz Pechtold\n"
        },
        {
            "id": 96381,
            "ctype": "campusonline.student",
            "presentation": "Yaren Fidanci\n"
        },
        {
            "id": 96385,
            "ctype": "campusonline.student",
            "presentation": "Anna-Sophie Leitner\n"
        },
        {
            "id": 96389,
            "ctype": "campusonline.student",
            "presentation": "Sander Claeys\n"
        },
        {
            "id": 96395,
            "ctype": "campusonline.student",
            "presentation": "Christina Nabinger\n"
        },
        {
            "id": 96398,
            "ctype": "campusonline.student",
            "presentation": "Reinhard Braunstein\n"
        },
        {
            "id": 96409,
            "ctype": "campusonline.student",
            "presentation": "Katharina Bierbaumer\n"
        },
        {
            "id": 96410,
            "ctype": "campusonline.student",
            "presentation": "B.Sc. M.Sc. Marcus Blohs\n"
        },
        {
            "id": 96415,
            "ctype": "campusonline.student",
            "presentation": "Hannes Schweiger\n"
        },
        {
            "id": 96419,
            "ctype": "campusonline.student",
            "presentation": "Martin Michael Hubner\n"
        },
        {
            "id": 96430,
            "ctype": "campusonline.student",
            "presentation": "Maria Wohlmacher\n"
        }
    ]
}