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=16960
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=16980",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16940",
    "results": [
        {
            "id": 100350,
            "ctype": "campusonline.student",
            "presentation": "Bruno Brandstätter\n"
        },
        {
            "id": 100356,
            "ctype": "campusonline.student",
            "presentation": "Claudia Hödl\n"
        },
        {
            "id": 100358,
            "ctype": "campusonline.student",
            "presentation": "Lea Kendlbacher\n"
        },
        {
            "id": 100360,
            "ctype": "campusonline.student",
            "presentation": "Astrid Paller\n"
        },
        {
            "id": 100362,
            "ctype": "campusonline.student",
            "presentation": "Theresa Obinger\n"
        },
        {
            "id": 100364,
            "ctype": "campusonline.student",
            "presentation": "Helena Nagl\n"
        },
        {
            "id": 100366,
            "ctype": "campusonline.student",
            "presentation": "Tina Unterweger\n"
        },
        {
            "id": 100368,
            "ctype": "campusonline.student",
            "presentation": "Nina Monsberger\n"
        },
        {
            "id": 100370,
            "ctype": "campusonline.student",
            "presentation": "Larissa Mariella Künzle\n"
        },
        {
            "id": 100372,
            "ctype": "campusonline.student",
            "presentation": "Martha Hartlieb\n"
        },
        {
            "id": 100374,
            "ctype": "campusonline.student",
            "presentation": "Masud Tovsultanov\n"
        },
        {
            "id": 100378,
            "ctype": "campusonline.student",
            "presentation": "Kevin Nguyen\n"
        },
        {
            "id": 100380,
            "ctype": "campusonline.student",
            "presentation": "David Gabriel Blasius Petschnig\n"
        },
        {
            "id": 100382,
            "ctype": "campusonline.student",
            "presentation": "Johannes Franziskus Wagner\n"
        },
        {
            "id": 100384,
            "ctype": "campusonline.student",
            "presentation": "Mira Riedl\n"
        },
        {
            "id": 100386,
            "ctype": "campusonline.student",
            "presentation": "Janine Weixler\n"
        },
        {
            "id": 100393,
            "ctype": "campusonline.student",
            "presentation": "Alana Samira Seigner\n"
        },
        {
            "id": 100395,
            "ctype": "campusonline.student",
            "presentation": "Lisa Jasmin Winkler\n"
        },
        {
            "id": 100398,
            "ctype": "campusonline.student",
            "presentation": "Tarik Badi Mustafa\n"
        },
        {
            "id": 100402,
            "ctype": "campusonline.student",
            "presentation": "Anna Margarete Therese Eckschlager\n"
        }
    ]
}