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=18240
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=18260",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18220",
    "results": [
        {
            "id": 104327,
            "ctype": "campusonline.student",
            "presentation": "Haris Ohranovic\n"
        },
        {
            "id": 104328,
            "ctype": "campusonline.student",
            "presentation": "Emanuel Geusau\n"
        },
        {
            "id": 104329,
            "ctype": "campusonline.student",
            "presentation": "Paeswika Karunaikumar\n"
        },
        {
            "id": 104330,
            "ctype": "campusonline.student",
            "presentation": "Paul Schmidt\n"
        },
        {
            "id": 104331,
            "ctype": "campusonline.student",
            "presentation": "Peter Remplbauer\n"
        },
        {
            "id": 104332,
            "ctype": "campusonline.student",
            "presentation": "Hanna Marie Grübler\n"
        },
        {
            "id": 104333,
            "ctype": "campusonline.student",
            "presentation": "Regina Ehrenmüller\n"
        },
        {
            "id": 104334,
            "ctype": "campusonline.student",
            "presentation": "Max Jünemann\n"
        },
        {
            "id": 104335,
            "ctype": "campusonline.student",
            "presentation": "Claudia Schneider\n"
        },
        {
            "id": 104336,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Danner\n"
        },
        {
            "id": 104337,
            "ctype": "campusonline.student",
            "presentation": "Philipp Pickl\n"
        },
        {
            "id": 104338,
            "ctype": "campusonline.student",
            "presentation": "Stella Preiss\n"
        },
        {
            "id": 104339,
            "ctype": "campusonline.student",
            "presentation": "Nina Dostal\n"
        },
        {
            "id": 104340,
            "ctype": "campusonline.student",
            "presentation": "Lisa Schütz\n"
        },
        {
            "id": 104341,
            "ctype": "campusonline.student",
            "presentation": "Matin Farahmand\n"
        },
        {
            "id": 104342,
            "ctype": "campusonline.student",
            "presentation": "Jakob Wallner\n"
        },
        {
            "id": 104343,
            "ctype": "campusonline.student",
            "presentation": "Phillip Haeffner\n"
        },
        {
            "id": 104344,
            "ctype": "campusonline.student",
            "presentation": "Thomas Wurm\n"
        },
        {
            "id": 104345,
            "ctype": "campusonline.student",
            "presentation": "Fabian Schraink\n"
        },
        {
            "id": 104346,
            "ctype": "campusonline.student",
            "presentation": "Barbara Hattmannsdorfer\n"
        }
    ]
}