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=16460
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=16480",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16440",
    "results": [
        {
            "id": 98638,
            "ctype": "campusonline.student",
            "presentation": "Stefan Tatar\n"
        },
        {
            "id": 98640,
            "ctype": "campusonline.student",
            "presentation": "Hanna Granitzer\n"
        },
        {
            "id": 98641,
            "ctype": "campusonline.student",
            "presentation": "Karin Weber\n"
        },
        {
            "id": 98643,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Scherrer\n"
        },
        {
            "id": 98645,
            "ctype": "campusonline.student",
            "presentation": "Jan-Niclas Aaron Press\n"
        },
        {
            "id": 98647,
            "ctype": "campusonline.student",
            "presentation": "Johannes Rauscher\n"
        },
        {
            "id": 98654,
            "ctype": "campusonline.student",
            "presentation": "Omid Ramezani\n"
        },
        {
            "id": 98657,
            "ctype": "campusonline.student",
            "presentation": "Alexander Thaller\n"
        },
        {
            "id": 98658,
            "ctype": "campusonline.student",
            "presentation": "Sofie Zötsch\n"
        },
        {
            "id": 98659,
            "ctype": "campusonline.student",
            "presentation": "Katharina Eibinger\n"
        },
        {
            "id": 98660,
            "ctype": "campusonline.student",
            "presentation": "Daniel Resch\n"
        },
        {
            "id": 98662,
            "ctype": "campusonline.student",
            "presentation": "Tobias Paar\n"
        },
        {
            "id": 98663,
            "ctype": "campusonline.student",
            "presentation": "Jonathan Wendler\n"
        },
        {
            "id": 98665,
            "ctype": "campusonline.student",
            "presentation": "Bertram Schadler\n"
        },
        {
            "id": 98667,
            "ctype": "campusonline.student",
            "presentation": "Laura Maria Schmidt\n"
        },
        {
            "id": 98669,
            "ctype": "campusonline.student",
            "presentation": "Louis Till Emil Caspar Kahlenberg\n"
        },
        {
            "id": 98672,
            "ctype": "campusonline.student",
            "presentation": "Jan Gruber\n"
        },
        {
            "id": 98673,
            "ctype": "campusonline.student",
            "presentation": "Dr.med. Christoph Bauer\n"
        },
        {
            "id": 98675,
            "ctype": "campusonline.student",
            "presentation": "Marc Ceru\n"
        },
        {
            "id": 98676,
            "ctype": "campusonline.student",
            "presentation": "Ernst Can Schmid\n"
        }
    ]
}