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=17280
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=17300",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17260",
    "results": [
        {
            "id": 101353,
            "ctype": "campusonline.student",
            "presentation": "Philipp Hundertpfund\n"
        },
        {
            "id": 101354,
            "ctype": "campusonline.student",
            "presentation": "Klara Husch\n"
        },
        {
            "id": 101355,
            "ctype": "campusonline.student",
            "presentation": "Philip Janssen\n"
        },
        {
            "id": 101356,
            "ctype": "campusonline.student",
            "presentation": "Caroline Kaiser\n"
        },
        {
            "id": 101357,
            "ctype": "campusonline.student",
            "presentation": "Marcel Kaller\n"
        },
        {
            "id": 101358,
            "ctype": "campusonline.student",
            "presentation": "Silvia Kaltenböck\n"
        },
        {
            "id": 101359,
            "ctype": "campusonline.student",
            "presentation": "Carmen Karner\n"
        },
        {
            "id": 101360,
            "ctype": "campusonline.student",
            "presentation": "Christina Victoria Kaufmann\n"
        },
        {
            "id": 101361,
            "ctype": "campusonline.student",
            "presentation": "Johanna Kaufmann\n"
        },
        {
            "id": 101362,
            "ctype": "campusonline.student",
            "presentation": "Lisa Maria Kernecker\n"
        },
        {
            "id": 101363,
            "ctype": "campusonline.student",
            "presentation": "Hanna Kinast\n"
        },
        {
            "id": 101364,
            "ctype": "campusonline.student",
            "presentation": "Laura Koch\n"
        },
        {
            "id": 101365,
            "ctype": "campusonline.student",
            "presentation": "Christina Köhl\n"
        },
        {
            "id": 101366,
            "ctype": "campusonline.student",
            "presentation": "Christina Maria Kölblinger\n"
        },
        {
            "id": 101367,
            "ctype": "campusonline.student",
            "presentation": "Madelene Koller\n"
        },
        {
            "id": 101368,
            "ctype": "campusonline.student",
            "presentation": "Karoline Kolndorffer\n"
        },
        {
            "id": 101369,
            "ctype": "campusonline.student",
            "presentation": "Nikolaus Kraml\n"
        },
        {
            "id": 101370,
            "ctype": "campusonline.student",
            "presentation": "Nils Kühn\n"
        },
        {
            "id": 101371,
            "ctype": "campusonline.student",
            "presentation": "Melanie Kührer\n"
        },
        {
            "id": 101372,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Lackner\n"
        }
    ]
}