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=17120
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=17140",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17100",
    "results": [
        {
            "id": 100796,
            "ctype": "campusonline.student",
            "presentation": "Alexander Stephan Reese\n"
        },
        {
            "id": 100798,
            "ctype": "campusonline.student",
            "presentation": "Jan Lauritsch\n"
        },
        {
            "id": 100800,
            "ctype": "campusonline.student",
            "presentation": "Emelie Frauendorfer\n"
        },
        {
            "id": 100802,
            "ctype": "campusonline.student",
            "presentation": "Peter Schieder\n"
        },
        {
            "id": 100804,
            "ctype": "campusonline.student",
            "presentation": "Alexander Meyer\n"
        },
        {
            "id": 100806,
            "ctype": "campusonline.student",
            "presentation": "Daniel Felber\n"
        },
        {
            "id": 100808,
            "ctype": "campusonline.student",
            "presentation": "Julia Wanner\n"
        },
        {
            "id": 100814,
            "ctype": "campusonline.student",
            "presentation": "Jonathan Andre Huland\n"
        },
        {
            "id": 100816,
            "ctype": "campusonline.student",
            "presentation": "Jakob Trittenwein\n"
        },
        {
            "id": 100820,
            "ctype": "campusonline.student",
            "presentation": "Andreas Müller\n"
        },
        {
            "id": 100824,
            "ctype": "campusonline.student",
            "presentation": "Victoria Constanze Unger\n"
        },
        {
            "id": 100826,
            "ctype": "campusonline.student",
            "presentation": "Nikolaus Schöggl\n"
        },
        {
            "id": 100834,
            "ctype": "campusonline.student",
            "presentation": "Malte Schwitzkowski\n"
        },
        {
            "id": 100836,
            "ctype": "campusonline.student",
            "presentation": "Tamim Leon Anssar\n"
        },
        {
            "id": 100841,
            "ctype": "campusonline.student",
            "presentation": "Andreas Erlbacher\n"
        },
        {
            "id": 100845,
            "ctype": "campusonline.student",
            "presentation": "Alexander Kaiser\n"
        },
        {
            "id": 100850,
            "ctype": "campusonline.student",
            "presentation": "Marie Parth\n"
        },
        {
            "id": 100852,
            "ctype": "campusonline.student",
            "presentation": "Franz Tiefenthaller\n"
        },
        {
            "id": 100856,
            "ctype": "campusonline.student",
            "presentation": "Franz Ludwig Pfeifer\n"
        },
        {
            "id": 100858,
            "ctype": "campusonline.student",
            "presentation": "Thomas Löschnig\n"
        }
    ]
}