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=17800
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=17820",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17780",
    "results": [
        {
            "id": 103386,
            "ctype": "campusonline.student",
            "presentation": "Theresa Franziska Ingrid Hierl\n"
        },
        {
            "id": 103388,
            "ctype": "campusonline.student",
            "presentation": "Laura Katharina Bielau\n"
        },
        {
            "id": 103391,
            "ctype": "campusonline.student",
            "presentation": "Sandra Maritsch\n"
        },
        {
            "id": 103394,
            "ctype": "campusonline.student",
            "presentation": "Tall Roschinsky\n"
        },
        {
            "id": 103397,
            "ctype": "campusonline.student",
            "presentation": "Anna Lena Lipp\n"
        },
        {
            "id": 103399,
            "ctype": "campusonline.student",
            "presentation": "Agna Prattes\n"
        },
        {
            "id": 103402,
            "ctype": "campusonline.student",
            "presentation": "Aaron Viktor Bredt\n"
        },
        {
            "id": 103403,
            "ctype": "campusonline.student",
            "presentation": "Selina Doppler\n"
        },
        {
            "id": 103405,
            "ctype": "campusonline.student",
            "presentation": "Marco Lercher\n"
        },
        {
            "id": 103407,
            "ctype": "campusonline.student",
            "presentation": "Simon Thomas\n"
        },
        {
            "id": 103409,
            "ctype": "campusonline.student",
            "presentation": "Lars Schäfer\n"
        },
        {
            "id": 103417,
            "ctype": "campusonline.student",
            "presentation": "Martin Pangerl\n"
        },
        {
            "id": 103421,
            "ctype": "campusonline.student",
            "presentation": "Sonja Mordhorst\n"
        },
        {
            "id": 103426,
            "ctype": "campusonline.student",
            "presentation": "Philip Elmer\n"
        },
        {
            "id": 103428,
            "ctype": "campusonline.student",
            "presentation": "Nikolaus Schuligoi\n"
        },
        {
            "id": 103432,
            "ctype": "campusonline.student",
            "presentation": "Luisa Kastner\n"
        },
        {
            "id": 103434,
            "ctype": "campusonline.student",
            "presentation": "Marco Reiser\n"
        },
        {
            "id": 103436,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Walcher\n"
        },
        {
            "id": 103438,
            "ctype": "campusonline.student",
            "presentation": "Ibrahim Hemida\n"
        },
        {
            "id": 103442,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Lux\n"
        }
    ]
}