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=17320
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=17340",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17300",
    "results": [
        {
            "id": 101394,
            "ctype": "campusonline.student",
            "presentation": "Jürgen Mraczansky\n"
        },
        {
            "id": 101395,
            "ctype": "campusonline.student",
            "presentation": "Mag.iur. Klaus Mühlböck\n"
        },
        {
            "id": 101396,
            "ctype": "campusonline.student",
            "presentation": "Peter Neufeld\n"
        },
        {
            "id": 101397,
            "ctype": "campusonline.student",
            "presentation": "Hanna Neugebauer\n"
        },
        {
            "id": 101398,
            "ctype": "campusonline.student",
            "presentation": "Tamara Nisavic\n"
        },
        {
            "id": 101399,
            "ctype": "campusonline.student",
            "presentation": "Wiebke Paduch\n"
        },
        {
            "id": 101400,
            "ctype": "campusonline.student",
            "presentation": "Patrick Pascu\n"
        },
        {
            "id": 101401,
            "ctype": "campusonline.student",
            "presentation": "Annabella Pereira\n"
        },
        {
            "id": 101402,
            "ctype": "campusonline.student",
            "presentation": "Tanja Patricia Pernsteiner\n"
        },
        {
            "id": 101403,
            "ctype": "campusonline.student",
            "presentation": "Celina Nadine Pirhöfer\n"
        },
        {
            "id": 101404,
            "ctype": "campusonline.student",
            "presentation": "Carina Pötscher\n"
        },
        {
            "id": 101405,
            "ctype": "campusonline.student",
            "presentation": "Sophie Pramer\n"
        },
        {
            "id": 101406,
            "ctype": "campusonline.student",
            "presentation": "Pinahas Premakumar\n"
        },
        {
            "id": 101407,
            "ctype": "campusonline.student",
            "presentation": "Theresa Purkarthofer\n"
        },
        {
            "id": 101408,
            "ctype": "campusonline.student",
            "presentation": "Pryäl Rana\n"
        },
        {
            "id": 101409,
            "ctype": "campusonline.student",
            "presentation": "Tanja Ratzenböck\n"
        },
        {
            "id": 101410,
            "ctype": "campusonline.student",
            "presentation": "Emil Erik Rebhan\n"
        },
        {
            "id": 101411,
            "ctype": "campusonline.student",
            "presentation": "Lukas Riesner\n"
        },
        {
            "id": 101412,
            "ctype": "campusonline.student",
            "presentation": "Hannes Rödhammer\n"
        },
        {
            "id": 101413,
            "ctype": "campusonline.student",
            "presentation": "Victoria Rüffler\n"
        }
    ]
}