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=16400
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=16420",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16380",
    "results": [
        {
            "id": 98554,
            "ctype": "campusonline.student",
            "presentation": "Felix Schretthauser\n"
        },
        {
            "id": 98555,
            "ctype": "campusonline.student",
            "presentation": "Andreas Hans Krainer\n"
        },
        {
            "id": 98556,
            "ctype": "campusonline.student",
            "presentation": "Verena Sofie Glassnegg\n"
        },
        {
            "id": 98558,
            "ctype": "campusonline.student",
            "presentation": "Johanna Triebl\n"
        },
        {
            "id": 98559,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Maria Knapp\n"
        },
        {
            "id": 98561,
            "ctype": "campusonline.student",
            "presentation": "Ismail Daoudi\n"
        },
        {
            "id": 98563,
            "ctype": "campusonline.student",
            "presentation": "Alexander Sebastian Beger\n"
        },
        {
            "id": 98564,
            "ctype": "campusonline.student",
            "presentation": "Lukas Urstöger\n"
        },
        {
            "id": 98565,
            "ctype": "campusonline.student",
            "presentation": "Rafael Arztmann\n"
        },
        {
            "id": 98567,
            "ctype": "campusonline.student",
            "presentation": "Alice Widnig\n"
        },
        {
            "id": 98569,
            "ctype": "campusonline.student",
            "presentation": "Bettina Wachmann\n"
        },
        {
            "id": 98570,
            "ctype": "campusonline.student",
            "presentation": "Marco Seebacher\n"
        },
        {
            "id": 98572,
            "ctype": "campusonline.student",
            "presentation": "Paul Greiner\n"
        },
        {
            "id": 98573,
            "ctype": "campusonline.student",
            "presentation": "Tamara Brandstätter\n"
        },
        {
            "id": 98574,
            "ctype": "campusonline.student",
            "presentation": "Tobias Warbruck\n"
        },
        {
            "id": 98576,
            "ctype": "campusonline.student",
            "presentation": "Florian Tiefenböck\n"
        },
        {
            "id": 98577,
            "ctype": "campusonline.student",
            "presentation": "Florian Franz Johann Sprinz\n"
        },
        {
            "id": 98578,
            "ctype": "campusonline.student",
            "presentation": "Katharina Raber\n"
        },
        {
            "id": 98579,
            "ctype": "campusonline.student",
            "presentation": "Katharina Seiser\n"
        },
        {
            "id": 98581,
            "ctype": "campusonline.student",
            "presentation": "Valentin Rinnhofer\n"
        }
    ]
}