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=17340
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=17360",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17320",
    "results": [
        {
            "id": 101414,
            "ctype": "campusonline.student",
            "presentation": "Eva Sophie Rumler\n"
        },
        {
            "id": 101415,
            "ctype": "campusonline.student",
            "presentation": "Magda Lena Runer\n"
        },
        {
            "id": 101416,
            "ctype": "campusonline.student",
            "presentation": "Annelore Sas\n"
        },
        {
            "id": 101417,
            "ctype": "campusonline.student",
            "presentation": "Natalie Schabetsberger\n"
        },
        {
            "id": 101418,
            "ctype": "campusonline.student",
            "presentation": "Lorena Christin Schatzl\n"
        },
        {
            "id": 101419,
            "ctype": "campusonline.student",
            "presentation": "Michael Schausberger\n"
        },
        {
            "id": 101420,
            "ctype": "campusonline.student",
            "presentation": "Karoline Schimek\n"
        },
        {
            "id": 101421,
            "ctype": "campusonline.student",
            "presentation": "Jim Elias Schlagnitweit\n"
        },
        {
            "id": 101422,
            "ctype": "campusonline.student",
            "presentation": "Claudia Schöfl\n"
        },
        {
            "id": 101423,
            "ctype": "campusonline.student",
            "presentation": "Julius Martin Schöllhorn\n"
        },
        {
            "id": 101424,
            "ctype": "campusonline.student",
            "presentation": "Michelle Schrabeck\n"
        },
        {
            "id": 101425,
            "ctype": "campusonline.student",
            "presentation": "Anna Cornelia Schuhmayer\n"
        },
        {
            "id": 101426,
            "ctype": "campusonline.student",
            "presentation": "Florian Schütz\n"
        },
        {
            "id": 101427,
            "ctype": "campusonline.student",
            "presentation": "Carina Schwabegger\n"
        },
        {
            "id": 101428,
            "ctype": "campusonline.student",
            "presentation": "Lena Seiringer\n"
        },
        {
            "id": 101429,
            "ctype": "campusonline.student",
            "presentation": "Claudio Silwanis\n"
        },
        {
            "id": 101430,
            "ctype": "campusonline.student",
            "presentation": "Simon Stein\n"
        },
        {
            "id": 101431,
            "ctype": "campusonline.student",
            "presentation": "Quentin Joshua Stroh\n"
        },
        {
            "id": 101432,
            "ctype": "campusonline.student",
            "presentation": "Nora Love Studener\n"
        },
        {
            "id": 101433,
            "ctype": "campusonline.student",
            "presentation": "Samuel Stützle\n"
        }
    ]
}