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=16380
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=16400",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16360",
    "results": [
        {
            "id": 98531,
            "ctype": "campusonline.student",
            "presentation": "Rebecca Kalsberger\n"
        },
        {
            "id": 98532,
            "ctype": "campusonline.student",
            "presentation": "Sarah Pfeifenberger\n"
        },
        {
            "id": 98533,
            "ctype": "campusonline.student",
            "presentation": "Moritz Streußnig\n"
        },
        {
            "id": 98534,
            "ctype": "campusonline.student",
            "presentation": "Matthäus Dürager\n"
        },
        {
            "id": 98535,
            "ctype": "campusonline.student",
            "presentation": "Paul Feinig\n"
        },
        {
            "id": 98536,
            "ctype": "campusonline.student",
            "presentation": "Alexander Lackner\n"
        },
        {
            "id": 98537,
            "ctype": "campusonline.student",
            "presentation": "Nicole Claudia Roßmann\n"
        },
        {
            "id": 98540,
            "ctype": "campusonline.student",
            "presentation": "Sophie Clara Angerer\n"
        },
        {
            "id": 98541,
            "ctype": "campusonline.student",
            "presentation": "Anna Purr\n"
        },
        {
            "id": 98543,
            "ctype": "campusonline.student",
            "presentation": "Nicol Turnowsky\n"
        },
        {
            "id": 98544,
            "ctype": "campusonline.student",
            "presentation": "Anna Löschnig\n"
        },
        {
            "id": 98545,
            "ctype": "campusonline.student",
            "presentation": "Johanna Andrée Sophie Luckas\n"
        },
        {
            "id": 98546,
            "ctype": "campusonline.student",
            "presentation": "Daniel Matthias Stütz\n"
        },
        {
            "id": 98547,
            "ctype": "campusonline.student",
            "presentation": "Karl Walter Moser\n"
        },
        {
            "id": 98548,
            "ctype": "campusonline.student",
            "presentation": "Nadja Maria Gottwald\n"
        },
        {
            "id": 98549,
            "ctype": "campusonline.student",
            "presentation": "Stefanie Walcher\n"
        },
        {
            "id": 98550,
            "ctype": "campusonline.student",
            "presentation": "Carolina Ehrentraut\n"
        },
        {
            "id": 98551,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Murg\n"
        },
        {
            "id": 98552,
            "ctype": "campusonline.student",
            "presentation": "Konstantin Willibald Obweger\n"
        },
        {
            "id": 98553,
            "ctype": "campusonline.student",
            "presentation": "Anna Krempl\n"
        }
    ]
}