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=15920
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=15940",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15900",
    "results": [
        {
            "id": 95940,
            "ctype": "campusonline.student",
            "presentation": "Elias Georg Hader\n"
        },
        {
            "id": 95941,
            "ctype": "campusonline.student",
            "presentation": "Jannis Sebastian Eder\n"
        },
        {
            "id": 95943,
            "ctype": "campusonline.student",
            "presentation": "Lorenz Kircher\n"
        },
        {
            "id": 95944,
            "ctype": "campusonline.student",
            "presentation": "Felix Hinterramskogler\n"
        },
        {
            "id": 95947,
            "ctype": "campusonline.student",
            "presentation": "Stefan Hirt\n"
        },
        {
            "id": 95949,
            "ctype": "campusonline.student",
            "presentation": "Marie-Theres Tauchner\n"
        },
        {
            "id": 95956,
            "ctype": "campusonline.student",
            "presentation": "Florian Trummer\n"
        },
        {
            "id": 95958,
            "ctype": "campusonline.student",
            "presentation": "Martin Michael Siwetz\n"
        },
        {
            "id": 95959,
            "ctype": "campusonline.student",
            "presentation": "Kai Ammerer\n"
        },
        {
            "id": 95960,
            "ctype": "campusonline.student",
            "presentation": "Daniela Sabine Pohl\n"
        },
        {
            "id": 95969,
            "ctype": "campusonline.student",
            "presentation": "Sophie Teres Spitzer\n"
        },
        {
            "id": 95972,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Novak\n"
        },
        {
            "id": 95974,
            "ctype": "campusonline.student",
            "presentation": "Xianghe Guo\n"
        },
        {
            "id": 95975,
            "ctype": "campusonline.student",
            "presentation": "Jakob Posch\n"
        },
        {
            "id": 95978,
            "ctype": "campusonline.student",
            "presentation": "Felix Paul Kölblinger\n"
        },
        {
            "id": 95981,
            "ctype": "campusonline.student",
            "presentation": "Christoph Strohhofer\n"
        },
        {
            "id": 95983,
            "ctype": "campusonline.student",
            "presentation": "Manuel Stelzer\n"
        },
        {
            "id": 95985,
            "ctype": "campusonline.student",
            "presentation": "Alexander Peter Hüttmair\n"
        },
        {
            "id": 95987,
            "ctype": "campusonline.student",
            "presentation": "Caroline Gründling\n"
        },
        {
            "id": 96000,
            "ctype": "campusonline.student",
            "presentation": "Vitus Körbler\n"
        }
    ]
}