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=17740
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=17760",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17720",
    "results": [
        {
            "id": 103174,
            "ctype": "campusonline.student",
            "presentation": "Anja Wartbichler\n"
        },
        {
            "id": 103176,
            "ctype": "campusonline.student",
            "presentation": "Klara Maria Viktoria Merl\n"
        },
        {
            "id": 103179,
            "ctype": "campusonline.student",
            "presentation": "Fernanda Romana Breitenfellner\n"
        },
        {
            "id": 103181,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Hauser\n"
        },
        {
            "id": 103183,
            "ctype": "campusonline.student",
            "presentation": "Pascal Pittino\n"
        },
        {
            "id": 103187,
            "ctype": "campusonline.student",
            "presentation": "Thomas Wimmer\n"
        },
        {
            "id": 103189,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Thomas Lehner\n"
        },
        {
            "id": 103192,
            "ctype": "campusonline.student",
            "presentation": "Eva Ertler\n"
        },
        {
            "id": 103195,
            "ctype": "campusonline.student",
            "presentation": "Selina Löffler\n"
        },
        {
            "id": 103197,
            "ctype": "campusonline.student",
            "presentation": "Clemens Lorenz Elsbacher\n"
        },
        {
            "id": 103199,
            "ctype": "campusonline.student",
            "presentation": "Christian Leon Hinkel\n"
        },
        {
            "id": 103202,
            "ctype": "campusonline.student",
            "presentation": "Ricarda Jobst\n"
        },
        {
            "id": 103205,
            "ctype": "campusonline.student",
            "presentation": "Christoph Halbartschlager\n"
        },
        {
            "id": 103207,
            "ctype": "campusonline.student",
            "presentation": "Beke Jungclaus\n"
        },
        {
            "id": 103209,
            "ctype": "campusonline.student",
            "presentation": "Christian Wabin\n"
        },
        {
            "id": 103211,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Standhartinger\n"
        },
        {
            "id": 103213,
            "ctype": "campusonline.student",
            "presentation": "Hannah Leiner\n"
        },
        {
            "id": 103216,
            "ctype": "campusonline.student",
            "presentation": "Lisa Scherber\n"
        },
        {
            "id": 103218,
            "ctype": "campusonline.student",
            "presentation": "Marie Maier\n"
        },
        {
            "id": 103220,
            "ctype": "campusonline.student",
            "presentation": "Hannah Gärtner\n"
        }
    ]
}