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=15700
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=15720",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15680",
    "results": [
        {
            "id": 94250,
            "ctype": "campusonline.student",
            "presentation": "lek. med. Roland Lotsu\n"
        },
        {
            "id": 94267,
            "ctype": "campusonline.student",
            "presentation": "Farah Dzankovic\n"
        },
        {
            "id": 94276,
            "ctype": "campusonline.student",
            "presentation": "Vanessa Reiter\n"
        },
        {
            "id": 94286,
            "ctype": "campusonline.student",
            "presentation": "Mohammad Ayub Khan\n"
        },
        {
            "id": 94287,
            "ctype": "campusonline.student",
            "presentation": "Johannes Foßelteder\n"
        },
        {
            "id": 94295,
            "ctype": "campusonline.student",
            "presentation": "Alexander Gangl\n"
        },
        {
            "id": 94304,
            "ctype": "campusonline.student",
            "presentation": "Johannes Lorenz Berg\n"
        },
        {
            "id": 94305,
            "ctype": "campusonline.student",
            "presentation": "Dr.med. Karl-Heinz Brune\n"
        },
        {
            "id": 94310,
            "ctype": "campusonline.student",
            "presentation": "Nadja Julia Kupper\n"
        },
        {
            "id": 94319,
            "ctype": "campusonline.student",
            "presentation": "Dott. Alessandra Grassi\n"
        },
        {
            "id": 94323,
            "ctype": "campusonline.student",
            "presentation": "dr.med. György Lehner\n"
        },
        {
            "id": 94328,
            "ctype": "campusonline.student",
            "presentation": "Helene Thekkekara Puthenparampil\n"
        },
        {
            "id": 94331,
            "ctype": "campusonline.student",
            "presentation": "Andrea Andorfer\n"
        },
        {
            "id": 94341,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Isabell Rusch\n"
        },
        {
            "id": 94347,
            "ctype": "campusonline.student",
            "presentation": "Alexander Pansi\n"
        },
        {
            "id": 94369,
            "ctype": "campusonline.student",
            "presentation": "Christina Skofler\n"
        },
        {
            "id": 94456,
            "ctype": "campusonline.student",
            "presentation": "Susanne Müllner\n"
        },
        {
            "id": 94486,
            "ctype": "campusonline.student",
            "presentation": "Andrea Kern\n"
        },
        {
            "id": 94553,
            "ctype": "campusonline.student",
            "presentation": "Sonja Kammerl\n"
        },
        {
            "id": 94565,
            "ctype": "campusonline.student",
            "presentation": "Meral Saraci\n"
        }
    ]
}