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=17640
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=17660",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17620",
    "results": [
        {
            "id": 102861,
            "ctype": "campusonline.student",
            "presentation": "Nicole Puntigam\n"
        },
        {
            "id": 102863,
            "ctype": "campusonline.student",
            "presentation": "Christopher Hammer\n"
        },
        {
            "id": 102867,
            "ctype": "campusonline.student",
            "presentation": "Gernot Stefan Ganser\n"
        },
        {
            "id": 102869,
            "ctype": "campusonline.student",
            "presentation": "Doris Lenger\n"
        },
        {
            "id": 102871,
            "ctype": "campusonline.student",
            "presentation": "Julia Bogensperger\n"
        },
        {
            "id": 102873,
            "ctype": "campusonline.student",
            "presentation": "Doris Tieber\n"
        },
        {
            "id": 102875,
            "ctype": "campusonline.student",
            "presentation": "Tanja Hierzerbauer\n"
        },
        {
            "id": 102877,
            "ctype": "campusonline.student",
            "presentation": "Kerstin Pally\n"
        },
        {
            "id": 102881,
            "ctype": "campusonline.student",
            "presentation": "Tanja Eder\n"
        },
        {
            "id": 102883,
            "ctype": "campusonline.student",
            "presentation": "Carina Pichler\n"
        },
        {
            "id": 102885,
            "ctype": "campusonline.student",
            "presentation": "Andrea Holl\n"
        },
        {
            "id": 102887,
            "ctype": "campusonline.student",
            "presentation": "Iris Plankenbichler\n"
        },
        {
            "id": 102891,
            "ctype": "campusonline.student",
            "presentation": "Kerstin Strasser\n"
        },
        {
            "id": 102893,
            "ctype": "campusonline.student",
            "presentation": "Susanne Schober\n"
        },
        {
            "id": 102895,
            "ctype": "campusonline.student",
            "presentation": "Marcel Mayer\n"
        },
        {
            "id": 102897,
            "ctype": "campusonline.student",
            "presentation": "Tamara Schuster\n"
        },
        {
            "id": 102902,
            "ctype": "campusonline.student",
            "presentation": "Margret Neumayr\n"
        },
        {
            "id": 102904,
            "ctype": "campusonline.student",
            "presentation": "Lisa Kuchler\n"
        },
        {
            "id": 102908,
            "ctype": "campusonline.student",
            "presentation": "Lisa Ruggenthaler\n"
        },
        {
            "id": 102910,
            "ctype": "campusonline.student",
            "presentation": "Carina Hanselmayer\n"
        }
    ]
}