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=15540
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=15560",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15520",
    "results": [
        {
            "id": 93276,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Reicht\n"
        },
        {
            "id": 93277,
            "ctype": "campusonline.student",
            "presentation": "Lara Engertsberger\n"
        },
        {
            "id": 93278,
            "ctype": "campusonline.student",
            "presentation": "Christian Wolfgang Skalnik\n"
        },
        {
            "id": 93282,
            "ctype": "campusonline.student",
            "presentation": "Lukas Thomas Keintzel\n"
        },
        {
            "id": 93284,
            "ctype": "campusonline.student",
            "presentation": "Judith Maria Luisa Wölfel\n"
        },
        {
            "id": 93287,
            "ctype": "campusonline.student",
            "presentation": "Anna Sophia Benezeder\n"
        },
        {
            "id": 93288,
            "ctype": "campusonline.student",
            "presentation": "Lukas Seebacher\n"
        },
        {
            "id": 93289,
            "ctype": "campusonline.student",
            "presentation": "Julian Jesinger\n"
        },
        {
            "id": 93290,
            "ctype": "campusonline.student",
            "presentation": "Samuel Siller\n"
        },
        {
            "id": 93295,
            "ctype": "campusonline.student",
            "presentation": "Laurin Erlacher\n"
        },
        {
            "id": 93304,
            "ctype": "campusonline.student",
            "presentation": "Dr. med. Raphael Stehrer\n"
        },
        {
            "id": 93305,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Maria Walter\n"
        },
        {
            "id": 93307,
            "ctype": "campusonline.student",
            "presentation": "Philipp Schmachtl\n"
        },
        {
            "id": 93308,
            "ctype": "campusonline.student",
            "presentation": "Christina Sabine Panzitt\n"
        },
        {
            "id": 93310,
            "ctype": "campusonline.student",
            "presentation": "Michael Vaterl\n"
        },
        {
            "id": 93313,
            "ctype": "campusonline.student",
            "presentation": "Johannes Leopold\n"
        },
        {
            "id": 93315,
            "ctype": "campusonline.student",
            "presentation": "Erik Putz\n"
        },
        {
            "id": 93316,
            "ctype": "campusonline.student",
            "presentation": "Katharina Greul\n"
        },
        {
            "id": 93323,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Brugger\n"
        },
        {
            "id": 93325,
            "ctype": "campusonline.student",
            "presentation": "Ario Fotohi\n"
        }
    ]
}