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=17520
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=17540",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17500",
    "results": [
        {
            "id": 102160,
            "ctype": "campusonline.student",
            "presentation": "Gerlinde Maria Szerencsits\n"
        },
        {
            "id": 102167,
            "ctype": "campusonline.student",
            "presentation": "Sonja Jantscher\n"
        },
        {
            "id": 102169,
            "ctype": "campusonline.student",
            "presentation": "Michaela Gallner\n"
        },
        {
            "id": 102171,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Anninger\n"
        },
        {
            "id": 102194,
            "ctype": "campusonline.student",
            "presentation": "Gerda Brigitte Maischberger\n"
        },
        {
            "id": 102197,
            "ctype": "campusonline.student",
            "presentation": "Mag. phil. Melanie Doris Maurer\n"
        },
        {
            "id": 102200,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Jasmin Elisabeth Berghold\n"
        },
        {
            "id": 102210,
            "ctype": "campusonline.student",
            "presentation": "Chrystalla Christou\n"
        },
        {
            "id": 102212,
            "ctype": "campusonline.student",
            "presentation": "Dyaa Ajloni\n"
        },
        {
            "id": 102214,
            "ctype": "campusonline.student",
            "presentation": "Asimina Pastra\n"
        },
        {
            "id": 102220,
            "ctype": "campusonline.student",
            "presentation": "Aleksandra Zubova\n"
        },
        {
            "id": 102230,
            "ctype": "campusonline.student",
            "presentation": "Yevhen Morozenko\n"
        },
        {
            "id": 102232,
            "ctype": "campusonline.student",
            "presentation": "Stefan Kühberger\n"
        },
        {
            "id": 102238,
            "ctype": "campusonline.student",
            "presentation": "Eva Dechler\n"
        },
        {
            "id": 102240,
            "ctype": "campusonline.student",
            "presentation": "Samuel Berec\n"
        },
        {
            "id": 102242,
            "ctype": "campusonline.student",
            "presentation": "Katrin Anja Winter\n"
        },
        {
            "id": 102248,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Franz Stocker\n"
        },
        {
            "id": 102252,
            "ctype": "campusonline.student",
            "presentation": "Stephan Ruprechter\n"
        },
        {
            "id": 102254,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.soc.oec. Daniela Janisch\n"
        },
        {
            "id": 102256,
            "ctype": "campusonline.student",
            "presentation": "Simone Kathlen Gassner\n"
        }
    ]
}