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=15360
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=15380",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15340",
    "results": [
        {
            "id": 92691,
            "ctype": "campusonline.student",
            "presentation": "Andrea Emilia Serban\n"
        },
        {
            "id": 92692,
            "ctype": "campusonline.student",
            "presentation": "Andreas Krumphuber\n"
        },
        {
            "id": 92696,
            "ctype": "campusonline.student",
            "presentation": "Sophia Elena Haan\n"
        },
        {
            "id": 92703,
            "ctype": "campusonline.student",
            "presentation": "Martin Raith\n"
        },
        {
            "id": 92713,
            "ctype": "campusonline.student",
            "presentation": "Philip Kozar\n"
        },
        {
            "id": 92715,
            "ctype": "campusonline.student",
            "presentation": "Gudrun Walser\n"
        },
        {
            "id": 92716,
            "ctype": "campusonline.student",
            "presentation": "Sascha Hammer\n"
        },
        {
            "id": 92717,
            "ctype": "campusonline.student",
            "presentation": "Robin Andreas Alexi\n"
        },
        {
            "id": 92718,
            "ctype": "campusonline.student",
            "presentation": "Lorenz Florian Fiedler\n"
        },
        {
            "id": 92719,
            "ctype": "campusonline.student",
            "presentation": "Joachim Distl\n"
        },
        {
            "id": 92724,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Carina Radler\n"
        },
        {
            "id": 92727,
            "ctype": "campusonline.student",
            "presentation": "Till Olaf Bartel\n"
        },
        {
            "id": 92734,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Anna Wiener\n"
        },
        {
            "id": 92736,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Hammer\n"
        },
        {
            "id": 92737,
            "ctype": "campusonline.student",
            "presentation": "Julian Elbischger\n"
        },
        {
            "id": 92739,
            "ctype": "campusonline.student",
            "presentation": "Beatrice Gutmann-Etl\n"
        },
        {
            "id": 92740,
            "ctype": "campusonline.student",
            "presentation": "Gregor Tögel\n"
        },
        {
            "id": 92742,
            "ctype": "campusonline.student",
            "presentation": "Amina Zenovic\n"
        },
        {
            "id": 92743,
            "ctype": "campusonline.student",
            "presentation": "Caroline Oberluggauer\n"
        },
        {
            "id": 92746,
            "ctype": "campusonline.student",
            "presentation": "Jonathan Aaron Krenn\n"
        }
    ]
}