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=16300
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=16320",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16280",
    "results": [
        {
            "id": 98417,
            "ctype": "campusonline.student",
            "presentation": "Lukas Raab\n"
        },
        {
            "id": 98418,
            "ctype": "campusonline.student",
            "presentation": "Julia Waltenstorfer\n"
        },
        {
            "id": 98419,
            "ctype": "campusonline.student",
            "presentation": "Marina Badzic\n"
        },
        {
            "id": 98420,
            "ctype": "campusonline.student",
            "presentation": "Sophie Maria Lederer\n"
        },
        {
            "id": 98421,
            "ctype": "campusonline.student",
            "presentation": "Robert Eric Grabke\n"
        },
        {
            "id": 98422,
            "ctype": "campusonline.student",
            "presentation": "Julia Corinna Putz\n"
        },
        {
            "id": 98423,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Nigl\n"
        },
        {
            "id": 98425,
            "ctype": "campusonline.student",
            "presentation": "Konstantin Michael Taupp\n"
        },
        {
            "id": 98428,
            "ctype": "campusonline.student",
            "presentation": "Tina Howischer\n"
        },
        {
            "id": 98429,
            "ctype": "campusonline.student",
            "presentation": "Florian Johannes Schubert\n"
        },
        {
            "id": 98430,
            "ctype": "campusonline.student",
            "presentation": "Niclas Alexander Knerr\n"
        },
        {
            "id": 98431,
            "ctype": "campusonline.student",
            "presentation": "Sophie Katharina Koppler\n"
        },
        {
            "id": 98433,
            "ctype": "campusonline.student",
            "presentation": "Anna Katharina Krawczyk\n"
        },
        {
            "id": 98434,
            "ctype": "campusonline.student",
            "presentation": "Marco Rämisch\n"
        },
        {
            "id": 98435,
            "ctype": "campusonline.student",
            "presentation": "Melina Laura Buriks\n"
        },
        {
            "id": 98440,
            "ctype": "campusonline.student",
            "presentation": "Lars Böcherer\n"
        },
        {
            "id": 98441,
            "ctype": "campusonline.student",
            "presentation": "Catharina Anna Hammerl\n"
        },
        {
            "id": 98443,
            "ctype": "campusonline.student",
            "presentation": "Sarah Leibetseder\n"
        },
        {
            "id": 98445,
            "ctype": "campusonline.student",
            "presentation": "Hauke Weißbruch\n"
        },
        {
            "id": 98446,
            "ctype": "campusonline.student",
            "presentation": "Carina Krappinger\n"
        }
    ]
}